diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index b68d48246679986dfeeb0aabe7319ff562f6d03e..94133680cc11c7285e3e65672b690cf512bd0544 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2190,7 +2190,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
 
     // "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 =