diff options
author | 2013-10-17 06:56:12 +0000 | |
---|---|---|
committer | 2013-10-17 06:56:12 +0000 | |
commit | 578e9b91c13a8ca780440f536ee8b9ebd9c962f1 (patch) | |
tree | 5e8dfafb8ccd521f733f17902125c7a57e81e080 /java/src/com/android/inputmethod | |
parent | 8447409c770fb6af5ca6f9cdc8396c0b9bd96127 (diff) | |
parent | 548716d6d9cdb62f5f82b7ce0a5d1bde63dc74ac (diff) | |
download | latinime-578e9b91c13a8ca780440f536ee8b9ebd9c962f1.tar.gz latinime-578e9b91c13a8ca780440f536ee8b9ebd9c962f1.tar.xz latinime-578e9b91c13a8ca780440f536ee8b9ebd9c962f1.zip |
Merge "Remove useless code."
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 4c778f1cc..65ff95458 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2030,7 +2030,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } private void handleBackspace(final int spaceState) { - // We revert this in this method if the deletion doesn't happen. mDeleteCount++; // In many cases, we may have to put the keyboard in auto-shift state again. However @@ -2124,9 +2123,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor(); if (codePointBeforeCursor == Constants.NOT_A_CODE) { - // Nothing to delete before the cursor. We have to revert the deletion count - // that was updated at the beginning of this method. - mDeleteCount--; + // Nothing to delete before the cursor. return; } final int lengthToDelete = |