aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LastComposedWord.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-27 08:52:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-27 08:52:11 +0000
commit5154c47cbe57b51e3dac97a98d932ce6d5110d26 (patch)
tree258940a314d50660b33e2f6d1a950eded1ce762c /java/src/com/android/inputmethod/latin/LastComposedWord.java
parente04a9798f6f1e2c4976c8c8bf07a204fa76a6da9 (diff)
parent05c46f59fdc6065aad833d905fc9759ba907fc82 (diff)
downloadlatinime-5154c47cbe57b51e3dac97a98d932ce6d5110d26.tar.gz
latinime-5154c47cbe57b51e3dac97a98d932ce6d5110d26.tar.xz
latinime-5154c47cbe57b51e3dac97a98d932ce6d5110d26.zip
Merge "[CB16] Remove unused stuff"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LastComposedWord.java19
1 files changed, 3 insertions, 16 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java
index a3b030626..69963d222 100644
--- a/java/src/com/android/inputmethod/latin/LastComposedWord.java
+++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java
@@ -38,38 +38,25 @@ public final class LastComposedWord {
// or it may be exactly what the user typed if it's in the dictionary or the IME does not have
// enough confidence in any suggestion to auto-correct (auto-correct to typed word).
public static final int COMMIT_TYPE_DECIDED_WORD = 2;
- // COMMIT_TYPE_CANCEL_AUTO_CORRECT is used upon committing back the old word upon cancelling
- // an auto-correction.
- public static final int COMMIT_TYPE_CANCEL_AUTO_CORRECT = 3;
public static final String NOT_A_SEPARATOR = "";
- public final ArrayList<Event> mEvents;
public final String mTypedWord;
public final CharSequence mCommittedWord;
public final String mSeparatorString;
public final String mPrevWord;
public final int mCapitalizedMode;
- public final InputPointers mInputPointers =
- new InputPointers(Constants.DICTIONARY_MAX_WORD_LENGTH);
private boolean mActive;
public static final LastComposedWord NOT_A_COMPOSED_WORD =
- new LastComposedWord(new ArrayList<Event>(), null, "", "",
- NOT_A_SEPARATOR, null, WordComposer.CAPS_MODE_OFF);
+ new LastComposedWord("", "", NOT_A_SEPARATOR, null, WordComposer.CAPS_MODE_OFF);
// Warning: this is using the passed objects as is and fully expects them to be
// immutable. Do not fiddle with their contents after you passed them to this constructor.
- public LastComposedWord(final ArrayList<Event> events,
- final InputPointers inputPointers, final String typedWord,
- final CharSequence committedWord, final String separatorString,
- final String prevWord, final int capitalizedMode) {
- if (inputPointers != null) {
- mInputPointers.copy(inputPointers);
- }
+ public LastComposedWord(final String typedWord, final CharSequence committedWord,
+ final String separatorString, final String prevWord, final int capitalizedMode) {
mTypedWord = typedWord;
- mEvents = new ArrayList<Event>(events);
mCommittedWord = committedWord;
mSeparatorString = separatorString;
mActive = true;