commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jke...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli CommandLine.java
Date Fri, 11 Oct 2002 23:07:34 GMT
jkeyes      2002/10/11 16:07:34

  Modified:    cli/src/java/org/apache/commons/cli CommandLine.java
  Log:
  removed old code that had been commited by mistake
  
  Revision  Changes    Path
  1.12      +0 -14     jakarta-commons/cli/src/java/org/apache/commons/cli/CommandLine.java
  
  Index: CommandLine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli/CommandLine.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CommandLine.java	19 Sep 2002 22:59:43 -0000	1.11
  +++ CommandLine.java	11 Oct 2002 23:07:34 -0000	1.12
  @@ -93,8 +93,6 @@
   
       /** Map of unique options for ease to get complete list of options */
       private Map hashcodeMap = new HashMap();
  -    private List optionList = new ArrayList();
  -    private List keyList    = new ArrayList();
   
       /** the processed options */
       private Option[] optionsArray;
  @@ -288,12 +286,10 @@
       void addOption( Option opt ) {
           hashcodeMap.put( new Integer( opt.hashCode() ), opt );
   
  -        optionList.add( opt );
           String key = opt.getOpt();
           if( " ".equals(key) ) {
               key = opt.getLongOpt();
           }
  -        keyList.add( key );
   
           if( options.get( key ) != null ) {
               ((java.util.List)options.get( key )).add( opt );
  @@ -322,16 +318,6 @@
       public Option[] getOptions( ) {
           Collection processed = hashcodeMap.values();
   
  -        // reinitialise array
  -        optionsArray = new Option[ processed.size() ];
  -
  -        // return the array
  -        return (Option[]) processed.toArray( optionsArray );
  -    }
  -
  -    public Option[] getOptions2() {
  -        System.out.println( "--2--" );
  -        Collection processed = optionList;
           // reinitialise array
           optionsArray = new Option[ processed.size() ];
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message