am ebe0544f: Remove redundant method AutoCorrection.isInTheDictionary

* commit 'ebe0544fc83f0f6796e5b0a019222b727a8eb6b3':
  Remove redundant method AutoCorrection.isInTheDictionary
main
Tadashi G. Takaoka 2013-05-24 11:43:32 -07:00 committed by Android Git Automerger
commit b9de067449
2 changed files with 1 additions and 8 deletions

View File

@ -73,13 +73,6 @@ public final class AutoCorrection {
return maxFreq;
}
// Returns true if this is in any of the dictionaries.
public static boolean isInTheDictionary(
final ConcurrentHashMap<String, Dictionary> dictionaries,
final String word, final boolean ignoreCase) {
return isValidWord(dictionaries, word, ignoreCase);
}
public static boolean suggestionExceedsAutoCorrectionThreshold(
final SuggestedWordInfo suggestion, final String consideredWord,
final float autoCorrectionThreshold) {

View File

@ -229,7 +229,7 @@ public final class Suggest {
// or if it's a 2+ characters non-word (i.e. it's not in the dictionary).
final boolean allowsToBeAutoCorrected = (null != whitelistedWord
&& !whitelistedWord.equals(consideredWord))
|| (consideredWord.length() > 1 && !AutoCorrection.isInTheDictionary(mDictionaries,
|| (consideredWord.length() > 1 && !AutoCorrection.isValidWord(mDictionaries,
consideredWord, wordComposer.isFirstCharCapitalized()));
final boolean hasAutoCorrection;