Merge "Remove useless code."
This commit is contained in:
commit
578e9b91c1
1 changed files with 1 additions and 4 deletions
|
@ -2030,7 +2030,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleBackspace(final int spaceState) {
|
private void handleBackspace(final int spaceState) {
|
||||||
// We revert this in this method if the deletion doesn't happen.
|
|
||||||
mDeleteCount++;
|
mDeleteCount++;
|
||||||
|
|
||||||
// In many cases, we may have to put the keyboard in auto-shift state again. However
|
// 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();
|
final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor();
|
||||||
if (codePointBeforeCursor == Constants.NOT_A_CODE) {
|
if (codePointBeforeCursor == Constants.NOT_A_CODE) {
|
||||||
// Nothing to delete before the cursor. We have to revert the deletion count
|
// Nothing to delete before the cursor.
|
||||||
// that was updated at the beginning of this method.
|
|
||||||
mDeleteCount--;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final int lengthToDelete =
|
final int lengthToDelete =
|
||||||
|
|
Loading…
Reference in a new issue