am 7a139757: Cleanup unused import and dead code
* commit '7a13975700574c42ff1e9cfff5934f00ffb3c802': Cleanup unused import and dead codemain
commit
2fbaed919f
|
@ -120,7 +120,6 @@ public class SuggestionSpanUtils {
|
||||||
spannable = new SpannableString(pickedWord);
|
spannable = new SpannableString(pickedWord);
|
||||||
}
|
}
|
||||||
final ArrayList<String> suggestionsList = new ArrayList<String>();
|
final ArrayList<String> suggestionsList = new ArrayList<String>();
|
||||||
boolean sameAsTyped = false;
|
|
||||||
for (int i = 0; i < suggestedWords.size(); ++i) {
|
for (int i = 0; i < suggestedWords.size(); ++i) {
|
||||||
if (suggestionsList.size() >= OBJ_SUGGESTIONS_MAX_SIZE) {
|
if (suggestionsList.size() >= OBJ_SUGGESTIONS_MAX_SIZE) {
|
||||||
break;
|
break;
|
||||||
|
@ -128,8 +127,6 @@ public class SuggestionSpanUtils {
|
||||||
final CharSequence word = suggestedWords.getWord(i);
|
final CharSequence word = suggestedWords.getWord(i);
|
||||||
if (!TextUtils.equals(pickedWord, word)) {
|
if (!TextUtils.equals(pickedWord, word)) {
|
||||||
suggestionsList.add(word.toString());
|
suggestionsList.add(word.toString());
|
||||||
} else if (i == 0) {
|
|
||||||
sameAsTyped = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
package com.android.inputmethod.latin;
|
package com.android.inputmethod.latin;
|
||||||
|
|
||||||
import android.text.TextUtils;
|
|
||||||
|
|
||||||
import com.android.inputmethod.keyboard.ProximityInfo;
|
import com.android.inputmethod.keyboard.ProximityInfo;
|
||||||
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.nio.channels.FileChannel;
|
import java.nio.channels.FileChannel;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue