Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec0fca8a authored by Jean Chalard's avatar Jean Chalard
Browse files

Remove useless stuff (A1)

Remove an unused method and avoid doing a useless computation

Change-Id: I29593c2e93f15857249b35bdd72ca28045056302
parent 7d6d98ec
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -37,10 +37,6 @@ public class AutoCorrection {
        return null != mAutoCorrectionWord;
    }

    public CharSequence getAutoCorrectionWord() {
        return mAutoCorrectionWord;
    }

    public double getNormalizedScore() {
        return mNormalizedScore;
    }
@@ -106,8 +102,8 @@ public class AutoCorrection {
            WordComposer wordComposer, ArrayList<CharSequence> suggestions, CharSequence typedWord,
            int correctionMode) {
        if (TextUtils.isEmpty(typedWord)) return false;
        boolean allowsAutoCorrect = allowsToBeAutoCorrected(dictionaries, typedWord, false);
        return wordComposer.size() > 1 && suggestions.size() > 0 && !allowsAutoCorrect
        return wordComposer.size() > 1 && suggestions.size() > 0
                && !allowsToBeAutoCorrected(dictionaries, typedWord, false)
                && (correctionMode == Suggest.CORRECTION_FULL
                || correctionMode == Suggest.CORRECTION_FULL_BIGRAM);
    }