diff options
author | 2012-05-23 15:32:26 +0900 | |
---|---|---|
committer | 2012-05-23 15:32:48 +0900 | |
commit | b5db270962f03abd6ba416e3fddf02356e8b7ce9 (patch) | |
tree | 9fe8ac2901560d244f72122f628aa5ce5584b4d4 /java/src | |
parent | 24ce36458690b34e7315556094b6943003cc490e (diff) | |
download | latinime-b5db270962f03abd6ba416e3fddf02356e8b7ce9.tar.gz latinime-b5db270962f03abd6ba416e3fddf02356e8b7ce9.tar.xz latinime-b5db270962f03abd6ba416e3fddf02356e8b7ce9.zip |
Remove unused private method Suggest.searchBigramSuggestion
Change-Id: I077c4c019676fefb8eac6042bd7db1b7ab33ca03
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 9e478fab4..c98a27b64 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -503,27 +503,6 @@ public class Suggest implements Dictionary.WordCallback { return true; } - // TODO: Use codepoint instead of char - private int searchBigramSuggestion(final char[] word, final int offset, final int length) { - // TODO This is almost O(n^2). Might need fix. - // search whether the word appeared in bigram data - int bigramSuggestSize = mBigramSuggestions.size(); - for (int i = 0; i < bigramSuggestSize; i++) { - if (mBigramSuggestions.get(i).codePointCount() == length) { - boolean chk = true; - for (int j = 0; j < length; j++) { - if (mBigramSuggestions.get(i).codePointAt(j) != word[offset+j]) { - chk = false; - break; - } - } - if (chk) return i; - } - } - - return -1; - } - public void close() { final HashSet<Dictionary> dictionaries = new HashSet<Dictionary>(); dictionaries.addAll(mUnigramDictionaries.values()); |