cvs commit: jakarta-oro/src/java/org/apache/oro/text/regex Perl5Compiler.java

[email protected]
Newsgroups gmane.comp.jakarta.oro.devel
Message-ID <[email protected]>
dfs         2002/11/20 14:51:29

  Modified:    src/java/org/apache/oro/text/awk AwkCompiler.java
               src/java/org/apache/oro/text/regex Perl5Compiler.java
  Log:
  Commented out Perl5Compiler.__setCharacterClasBits and AwkCompiler() as
  they are unused, but did not remove them for reasons indicated in the
  comments.
  
  Revision  Changes    Path
  1.7       +4 -2      jakarta-oro/src/java/org/apache/oro/text/awk/AwkCompiler.java
  
  Index: AwkCompiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/awk/AwkCompiler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AwkCompiler.java	20 Nov 2002 21:31:03 -0000	1.6
  +++ AwkCompiler.java	20 Nov 2002 22:51:29 -0000	1.7
  @@ -182,7 +182,9 @@
     private char[] __regularExpression;
     private int __openParen, __closeParen;
   
  -  public AwkCompiler() { }
  +  // We do not currently need to initialize any state, but keep this
  +  // commented out as a reminder that we may have to at some point.
  +  //public AwkCompiler() { }
   
     private static boolean __isMetachar(char token) {
       return (token == '*' || token == '?' || token == '+' ||
  
  
  
  1.17      +5 -6      jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Compiler.java
  
  Index: Perl5Compiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Compiler.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Perl5Compiler.java	20 Nov 2002 21:31:03 -0000	1.16
  +++ Perl5Compiler.java	20 Nov 2002 22:51:29 -0000	1.17
  @@ -937,7 +937,10 @@
       return offset;
     }
   
  -
  +  // These are the original 8-bit character class handling methods.
  +  // We don't want to delete them just yet only to have to dig it out
  +  // of revision control later.
  +  /*
     // Set the bits in a character class.  Only recognizes ascii.
     private void __setCharacterClassBits(char[] bits, int offset, char deflt,
   				       char ch)
  @@ -953,10 +956,6 @@
       }
     }
   
  -  // This is the original 8-bit character class handling method.
  -  // We don't want to delete it just yet only to have to dig it out
  -  // of revision control later.
  -  /*
     private int __parseCharacterClass() throws MalformedPatternException {
       boolean range = false, skipTest;
       char clss, deflt, lastclss = Character.MAX_VALUE;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.