commented out unused

This commit is contained in:
Lukáš Vlček 2011-06-21 16:07:52 +02:00 committed by kimchy
parent 2f9a1c7a6a
commit a9a80958ce
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory {
static void parseRules(List<String> rules, SynonymMap map, String mappingSep, static void parseRules(List<String> rules, SynonymMap map, String mappingSep,
String synSep, boolean expansion, TokenizerFactory tokFactory) { String synSep, boolean expansion, TokenizerFactory tokFactory) {
int count = 0; // int count = 0;
for (String rule : rules) { for (String rule : rules) {
// To use regexes, we need an expression that specifies an odd number of chars. // To use regexes, we need an expression that specifies an odd number of chars.
// This can't really be done with string.split(), and since we need to // This can't really be done with string.split(), and since we need to
@ -106,7 +106,7 @@ public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory {
boolean includeOrig = false; boolean includeOrig = false;
for (List<String> fromToks : source) { for (List<String> fromToks : source) {
count++; // count++;
for (List<String> toToks : target) { for (List<String> toToks : target) {
map.add(fromToks, map.add(fromToks,
SynonymMap.makeTokens(toToks), SynonymMap.makeTokens(toToks),