mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Remove useless adding of shortcut as unigrams.
Change-Id: I1f50ebf00d6dd0dad4114fad86ace5b7b304613a
This commit is contained in:
parent
752996540f
commit
e705a122d1
@ -311,9 +311,6 @@ public class FusionDictionary implements Iterable<Word> {
|
|||||||
public void add(final String word, final int frequency,
|
public void add(final String word, final int frequency,
|
||||||
final ArrayList<WeightedString> shortcutTargets,
|
final ArrayList<WeightedString> shortcutTargets,
|
||||||
final ArrayList<WeightedString> bigrams) {
|
final ArrayList<WeightedString> bigrams) {
|
||||||
if (null != shortcutTargets) {
|
|
||||||
addNeutralWords(shortcutTargets);
|
|
||||||
}
|
|
||||||
if (null != bigrams) {
|
if (null != bigrams) {
|
||||||
addNeutralWords(bigrams);
|
addNeutralWords(bigrams);
|
||||||
}
|
}
|
||||||
@ -350,7 +347,6 @@ public class FusionDictionary implements Iterable<Word> {
|
|||||||
if (null == shortcutTargets) {
|
if (null == shortcutTargets) {
|
||||||
throw new RuntimeException("Can't add a shortcut without targets");
|
throw new RuntimeException("Can't add a shortcut without targets");
|
||||||
}
|
}
|
||||||
addNeutralWords(shortcutTargets);
|
|
||||||
add(getCodePoints(word), frequency, shortcutTargets, null, true /* isShortcutOnly */);
|
add(getCodePoints(word), frequency, shortcutTargets, null, true /* isShortcutOnly */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user