[IL32] Remove a useless variable

Change-Id: I8f5d8fd8c1627a568df57255dc3dceda26c4720c
This commit is contained in:
Jean Chalard 2013-12-20 21:34:07 +09:00
parent 1587be6977
commit 07f7536b04

View File

@ -193,7 +193,6 @@ public final class InputLogic {
}
mLastKeyTime = when;
mConnection.beginBatchEdit();
final KeyboardSwitcher switcher = keyboardSwitcher;
// The space state depends only on the last character pressed and its own previous
// state. Here, we revert the space state to neutral if the key is actually modifying
// the input contents (any non-shift key), which is what we should do for
@ -218,7 +217,7 @@ public final class InputLogic {
case Constants.CODE_SHIFT:
// Note: Calling back to the keyboard on Shift key is handled in
// {@link #onPressKey(int,int,boolean)} and {@link #onReleaseKey(int,boolean)}.
final Keyboard currentKeyboard = switcher.getKeyboard();
final Keyboard currentKeyboard = keyboardSwitcher.getKeyboard();
if (null != currentKeyboard && currentKeyboard.mId.isAlphabetKeyboard()) {
// TODO: Instead of checking for alphabetic keyboard here, separate keycodes for
// alphabetic shift and shift while in symbol layout.
@ -285,7 +284,7 @@ public final class InputLogic {
code, x, y, spaceState, keyboardSwitcher, handler);
break;
}
switcher.onCodeInput(code);
keyboardSwitcher.onCodeInput(code);
// Reset after any single keystroke, except shift, capslock, and symbol-shift
if (!didAutoCorrect && code != Constants.CODE_SHIFT
&& code != Constants.CODE_CAPSLOCK