From 05c46f59fdc6065aad833d905fc9759ba907fc82 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 25 Mar 2014 18:15:15 +0900 Subject: [CB16] Remove unused stuff Bug: 13406701 Change-Id: Ib863c5181e1f5d74cfa4458060afc49d1ee8109e --- .../android/inputmethod/latin/WordComposer.java | 23 ++-------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java') 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; } -- cgit v1.2.3-83-g751a