diff options
author | 2014-03-27 08:52:11 +0000 | |
---|---|---|
committer | 2014-03-27 08:52:11 +0000 | |
commit | 5154c47cbe57b51e3dac97a98d932ce6d5110d26 (patch) | |
tree | 258940a314d50660b33e2f6d1a950eded1ce762c /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | e04a9798f6f1e2c4976c8c8bf07a204fa76a6da9 (diff) | |
parent | 05c46f59fdc6065aad833d905fc9759ba907fc82 (diff) | |
download | latinime-5154c47cbe57b51e3dac97a98d932ce6d5110d26.tar.gz latinime-5154c47cbe57b51e3dac97a98d932ce6d5110d26.tar.xz latinime-5154c47cbe57b51e3dac97a98d932ce6d5110d26.zip |
Merge "[CB16] Remove unused stuff"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 4638c8a8b..52d13770b 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -426,9 +426,8 @@ public final class WordComposer { // Note: currently, we come here whenever we commit a word. If it's a MANUAL_PICK // or a DECIDED_WORD we may cancel the commit later; otherwise, we should deactivate // the last composed word to ensure this does not happen. - final LastComposedWord lastComposedWord = new LastComposedWord(mEvents, - mInputPointers, mTypedWord.toString(), committedWord, separatorString, - prevWord, mCapitalizedMode); + final LastComposedWord lastComposedWord = new LastComposedWord( + mTypedWord.toString(), committedWord, separatorString, prevWord, mCapitalizedMode); mInputPointers.reset(); if (type != LastComposedWord.COMMIT_TYPE_DECIDED_WORD && type != LastComposedWord.COMMIT_TYPE_MANUAL_PICK) { @@ -459,24 +458,6 @@ public final class WordComposer { public void discardPreviousWordForSuggestion() { mPreviousWordForSuggestion = null; } - - public void resumeSuggestionOnLastComposedWord(final LastComposedWord lastComposedWord, - final String previousWord) { - mEvents.clear(); - Collections.copy(mEvents, lastComposedWord.mEvents); - mInputPointers.set(lastComposedWord.mInputPointers); - mTypedWord.setLength(0); - mCombinerChain.reset(); - mTypedWord.append(lastComposedWord.mTypedWord); - refreshSize(); - mCapitalizedMode = lastComposedWord.mCapitalizedMode; - mAutoCorrection = null; // This will be filled by the next call to updateSuggestion. - mCursorPositionWithinWord = mCodePointSize; - mRejectedBatchModeSuggestion = null; - mIsResumed = true; - mPreviousWordForSuggestion = previousWord; - } - public boolean isBatchMode() { return mIsBatchMode; } |