diff options
author | 2012-07-02 18:56:41 -0700 | |
---|---|---|
committer | 2012-07-02 18:56:41 -0700 | |
commit | b87b23eb754453093288e1198f9b3f85dcdfa83a (patch) | |
tree | f1c29e261164725854bf366cf8f4c6057a9f19f7 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | 6547f43666899d21de0260cb121acd513f8883a7 (diff) | |
parent | 7ad088a4cf5593a2c72e143f10ba2e7ffed8bb09 (diff) | |
download | latinime-b87b23eb754453093288e1198f9b3f85dcdfa83a.tar.gz latinime-b87b23eb754453093288e1198f9b3f85dcdfa83a.tar.xz latinime-b87b23eb754453093288e1198f9b3f85dcdfa83a.zip |
Merge "Remove useless code (A42)"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 398881335..9e9ffc76a 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -240,11 +240,6 @@ public class Suggest { hasAutoCorrection = false; } else if (null != whitelistedWord) { hasAutoCorrection = true; - } else if (!allowsToBeAutoCorrected) { - // TODO: make the variable name clearer. If we don't allow auto-correct, that means - // this word is a dictionary word that is not whitelisted, so it should auto-correct - // to itself! Hence, the true here. - hasAutoCorrection = true; } else if (suggestionsSet.isEmpty()) { hasAutoCorrection = false; } else if (AutoCorrection.suggestionExceedsAutoCorrectionThreshold(suggestionsSet.first(), |