Remove useless adding of shortcut as unigrams.

Change-Id: I1f50ebf00d6dd0dad4114fad86ace5b7b304613a
main
Jean Chalard 2012-03-27 18:07:26 +09:00
parent 752996540f
commit e705a122d1
1 changed files with 0 additions and 4 deletions

View File

@ -311,9 +311,6 @@ public class FusionDictionary implements Iterable<Word> {
public void add(final String word, final int frequency,
final ArrayList<WeightedString> shortcutTargets,
final ArrayList<WeightedString> bigrams) {
if (null != shortcutTargets) {
addNeutralWords(shortcutTargets);
}
if (null != bigrams) {
addNeutralWords(bigrams);
}
@ -350,7 +347,6 @@ public class FusionDictionary implements Iterable<Word> {
if (null == shortcutTargets) {
throw new RuntimeException("Can't add a shortcut without targets");
}
addNeutralWords(shortcutTargets);
add(getCodePoints(word), frequency, shortcutTargets, null, true /* isShortcutOnly */);
}