diff options
author | 2012-05-23 00:20:09 -0700 | |
---|---|---|
committer | 2012-05-23 00:20:09 -0700 | |
commit | 0673e941eb26b491f53bbbb2bbdc49bfd07ff973 (patch) | |
tree | 68f8fbb9712ec553c96963656f6d86c1aef3480a /java/src | |
parent | 41531cfb7413b22267b17359a76fc47432152d57 (diff) | |
parent | 4cba9f58d46e390ccdff0450cd4bf7be1d106b5a (diff) | |
download | latinime-0673e941eb26b491f53bbbb2bbdc49bfd07ff973.tar.gz latinime-0673e941eb26b491f53bbbb2bbdc49bfd07ff973.tar.xz latinime-0673e941eb26b491f53bbbb2bbdc49bfd07ff973.zip |
am 4cba9f58: Merge "Remove unused private method Suggest.searchBigramSuggestion" into jb-dev
* commit '4cba9f58d46e390ccdff0450cd4bf7be1d106b5a':
Remove unused private method Suggest.searchBigramSuggestion
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()); |