Merge "Fix a bug where revert auto-correct would revert too much"
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index e34bdc7..6ea642c 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2206,7 +2206,6 @@
 
     // "ic" must not be null
     private void restartSuggestionsOnManuallyPickedTypedWord(final InputConnection ic) {
-        final CharSequence separator = ic.getTextBeforeCursor(1, 0);
         final int restartLength = mWordComposer.size();
         if (DEBUG) {
             final String wordBeforeCursor =