aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-28 04:41:05 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-28 04:41:05 -0700
commit428484d6f9f8a95749e9dac48539fcc0b5d5b290 (patch)
treedc90d982de1085d4e8751485da38c1a61bcb6533 /java/src
parentaacffad8efc3fd106e81b2aa57bbe732619d37b4 (diff)
parente705a122d11768cd32cf5072390750ac785877c5 (diff)
downloadlatinime-428484d6f9f8a95749e9dac48539fcc0b5d5b290.tar.gz
latinime-428484d6f9f8a95749e9dac48539fcc0b5d5b290.tar.xz
latinime-428484d6f9f8a95749e9dac48539fcc0b5d5b290.zip
Merge "Remove useless adding of shortcut as unigrams."
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java b/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
index 64fcd7f1a..d3ffb47ad 100644
--- a/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
+++ b/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
@@ -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 */);
}