diff options
author | 2012-07-09 20:13:22 +0900 | |
---|---|---|
committer | 2012-07-10 19:30:46 +0900 | |
commit | f5943153ad2ba611feec916119dca2343a1ef6de (patch) | |
tree | 4d4c8c4021ca68809838b0cfcf8f5e283abaadf6 /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | |
parent | b30d2185f24e3d531f5d46249e7c97391705e469 (diff) | |
download | latinime-f5943153ad2ba611feec916119dca2343a1ef6de.tar.gz latinime-f5943153ad2ba611feec916119dca2343a1ef6de.tar.xz latinime-f5943153ad2ba611feec916119dca2343a1ef6de.zip |
Cleanup old methods (A90)
Change-Id: I5435cef8ac6be523934ffa394952cb120c8e89d6
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java index dd949f121..016530abb 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java @@ -16,7 +16,6 @@ package com.android.inputmethod.latin; import android.content.Context; import android.os.SystemClock; -import android.text.TextUtils; import android.util.Log; import com.android.inputmethod.keyboard.ProximityInfo; @@ -208,52 +207,6 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { return null; } - // TODO: remove this - @Override - protected ArrayList<SuggestedWordInfo> getWords(final WordComposer codes, - final CharSequence prevWordForBigrams, final ProximityInfo proximityInfo) { - asyncReloadDictionaryIfRequired(); - return getWordsInner(codes, prevWordForBigrams, proximityInfo); - } - - protected final ArrayList<SuggestedWordInfo> getWordsInner(final WordComposer codes, - final CharSequence prevWordForBigrams, final ProximityInfo proximityInfo) { - // Ensure that there are no concurrent calls to getWords. If there are, do nothing and - // return. - if (mLocalDictionaryController.tryLock()) { - try { - if (mBinaryDictionary != null) { - return mBinaryDictionary.getWords(codes, prevWordForBigrams, proximityInfo); - } - } finally { - mLocalDictionaryController.unlock(); - } - } - return null; - } - - // TODO: remove this - @Override - protected ArrayList<SuggestedWordInfo> getBigrams(final WordComposer codes, - final CharSequence previousWord) { - asyncReloadDictionaryIfRequired(); - return getBigramsInner(codes, previousWord); - } - - protected ArrayList<SuggestedWordInfo> getBigramsInner(final WordComposer codes, - final CharSequence previousWord) { - if (mLocalDictionaryController.tryLock()) { - try { - if (mBinaryDictionary != null) { - return mBinaryDictionary.getBigrams(codes, previousWord); - } - } finally { - mLocalDictionaryController.unlock(); - } - } - return null; - } - @Override public boolean isValidWord(final CharSequence word) { asyncReloadDictionaryIfRequired(); |