lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r413152 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java
Date Fri, 09 Jun 2006 20:31:07 GMT
Author: dnaber
Date: Fri Jun  9 13:31:07 2006
New Revision: 413152

URL: http://svn.apache.org/viewvc?rev=413152&view=rev
Log:
remove private method that was not used at all

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java?rev=413152&r1=413151&r2=413152&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java Fri Jun  9 13:31:07
2006
@@ -16,14 +16,12 @@
  * limitations under the License.
  */
 
+import java.io.BufferedReader;
 import java.io.File;
 import java.io.FileReader;
 import java.io.IOException;
 import java.io.Reader;
-import java.io.BufferedReader;
 import java.util.HashSet;
-import java.util.Hashtable;
-import java.util.Iterator;
 
 /**
  * Loader for text files that represent a list of stopwords.
@@ -86,19 +84,4 @@
     return result;
   }
 
-
-  /**
-   * Builds a wordlist table, using words as both keys and values
-   * for backward compatibility.
-   *
-   * @param wordSet   stopword set
-   */
-  private static Hashtable makeWordTable(HashSet wordSet) {
-    Hashtable table = new Hashtable();
-    for (Iterator iter = wordSet.iterator(); iter.hasNext();) {
-      String word = (String)iter.next();
-      table.put(word, word);
-    }
-    return table;
-  }
 }



Mime
View raw message