directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491691 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SubstringNode.java
Date Mon, 01 Jan 2007 23:21:34 GMT
Author: elecharny
Date: Mon Jan  1 15:21:33 2007
New Revision: 491691

URL: http://svn.apache.org/viewvc?view=rev&rev=491691
Log:
Removed dead code

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SubstringNode.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SubstringNode.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SubstringNode.java?view=diff&rev=491691&r1=491690&r2=491691
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SubstringNode.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SubstringNode.java
Mon Jan  1 15:21:33 2007
@@ -48,10 +48,6 @@
     /** List of fragments between wildcards */
     private final List anyPattern;
 
-    /** Generated regular expression from substring assertion expression */
-    private transient Pattern regex = null;
-
-
     /**
      * Creates a new SubstringNode object with only one wildcard and no internal
      * any fragments between wildcards.
@@ -138,11 +134,6 @@
      */
     public final Pattern getRegex( Normalizer normalizer ) throws PatternSyntaxException,
NamingException
     {
-        if ( regex != null )
-        {
-            return regex;
-        }
-
         if ( anyPattern.size() > 0 )
         {
             String[] any = new String[anyPattern.size()];



Mime
View raw message