Remove a useless parameter (A91A)

Change-Id: I1d1758048649ef337875a5141d825569af7ad38c
This commit is contained in:
Jean Chalard 2012-07-10 19:31:36 +09:00
parent f5943153ad
commit 5e573a1f0a
2 changed files with 3 additions and 5 deletions

View file

@ -1696,7 +1696,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mWordComposer.isComposingWord() ? 2 : 1);
SuggestedWords suggestedWords = mSuggest.getSuggestedWords(mWordComposer,
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
mCurrentSettings.mCorrectionEnabled, !mWordComposer.isComposingWord());
mCurrentSettings.mCorrectionEnabled);
suggestedWords = maybeRetrieveOlderSuggestions(typedWord, suggestedWords);
if (null != suggestedWords && suggestedWords.size() > 0) {

View file

@ -156,10 +156,8 @@ public class Suggest {
// TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
public SuggestedWords getSuggestedWords(
final WordComposer wordComposer, CharSequence prevWordForBigram,
final ProximityInfo proximityInfo, final boolean isCorrectionEnabled,
// TODO: remove isPrediction parameter. It effectively means the same thing
// as wordComposer.size() <= 1
final boolean isPrediction) {
final ProximityInfo proximityInfo, final boolean isCorrectionEnabled) {
final boolean isPrediction = !wordComposer.isComposingWord();
LatinImeLogger.onStartSuggestion(prevWordForBigram);
final boolean isFirstCharCapitalized =
!isPrediction && wordComposer.isFirstCharCapitalized();