You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by dn...@apache.org on 2006/06/09 22:31:07 UTC

svn commit: r413152 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/WordlistLoader.java

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;
-  }
 }