commit | 7c5f2bbd2a44176cb54b90aa05a0af46e79e83d8 | [log] [tgz] |
---|---|---|
author | Jean Chalard <jchalard@google.com> | Thu Mar 15 15:10:07 2012 +0900 |
committer | Jean Chalard <jchalard@google.com> | Thu Mar 15 15:10:07 2012 +0900 |
tree | 979f81e591ec9a11248d47c4cb88c3330f9cc9b5 | |
parent | 042557b45bf2554608cd22874633011157cd1752 [diff] |
Remove useless code I tracked all the calls to the constructor, and the passed list is never null. It's also final, so it's safe. Change-Id: I320f907acee0b237bb286a9a183c18106809174a
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index 09eac49..b63bc6c 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -59,7 +59,7 @@ } public SuggestedWordInfo getInfo(int pos) { - return mSuggestedWordInfoList != null ? mSuggestedWordInfoList.get(pos) : null; + return mSuggestedWordInfoList.get(pos); } public boolean hasAutoCorrectionWord() {