diff options
author | 2012-03-13 19:13:15 +0900 | |
---|---|---|
committer | 2012-03-13 19:37:16 +0900 | |
commit | 08adb09e149f920a63ecbc5c2f63d9cb7dbee0ab (patch) | |
tree | 996d366bab3528e7ba5be521aaf21189695e4d22 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | 9ffaae71d9f31e35a05e8a5b2a55c74d171792d3 (diff) | |
download | latinime-08adb09e149f920a63ecbc5c2f63d9cb7dbee0ab.tar.gz latinime-08adb09e149f920a63ecbc5c2f63d9cb7dbee0ab.tar.xz latinime-08adb09e149f920a63ecbc5c2f63d9cb7dbee0ab.zip |
Remove unused stuff.
Remove 2 methods that were left only for tests to compile in
another project, but are not used any more now that the tests
have been updated.
Also remove an attribute that is never read.
Change-Id: Ic9ba1f52a465199c82c923d77ed7450460e8a4b9
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index a5c70eca9..3015d75ce 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -271,8 +271,7 @@ public class Suggest implements Dictionary.WordCallback { return new SuggestedWords.Builder() .setWords(SuggestedWords.Builder.getFromCharSequenceList(mSuggestions)) - .setAllowsToBeAutoCorrected(false) - .setHasAutoCorrection(false); + .setAllowsToBeAutoCorrected(false); } // TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder @@ -425,13 +424,11 @@ public class Suggest implements Dictionary.WordCallback { "--", false)); } builder = new SuggestedWords.Builder().setWords(scoreInfoList) - .setAllowsToBeAutoCorrected(allowsToBeAutoCorrected) - .setHasAutoCorrection(hasAutoCorrection); + .setAllowsToBeAutoCorrected(allowsToBeAutoCorrected); } else { builder = new SuggestedWords.Builder() .setWords(SuggestedWords.Builder.getFromCharSequenceList(mSuggestions)) - .setAllowsToBeAutoCorrected(allowsToBeAutoCorrected) - .setHasAutoCorrection(hasAutoCorrection); + .setAllowsToBeAutoCorrected(allowsToBeAutoCorrected); } boolean autoCorrectionAvailable = hasAutoCorrection; |