Skip to content
Snippets Groups Projects
Commit b87b23eb authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Remove useless code (A42)"

parents 6547f436 7ad088a4
No related branches found
No related tags found
No related merge requests found
...@@ -240,11 +240,6 @@ public class Suggest { ...@@ -240,11 +240,6 @@ public class Suggest {
hasAutoCorrection = false; hasAutoCorrection = false;
} else if (null != whitelistedWord) { } else if (null != whitelistedWord) {
hasAutoCorrection = true; 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()) { } else if (suggestionsSet.isEmpty()) {
hasAutoCorrection = false; hasAutoCorrection = false;
} else if (AutoCorrection.suggestionExceedsAutoCorrectionThreshold(suggestionsSet.first(), } else if (AutoCorrection.suggestionExceedsAutoCorrectionThreshold(suggestionsSet.first(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment