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

Commit 525141a4 authored by satok's avatar satok
Browse files

Clean up LatinIME java

- remove unused code
- add @Override
- change the inappropriate cast

Change-Id: Ib25b4939e5b4273794ab0f6349776b5b62d89894
parent e07d6a77
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.inputmethod.latin;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ public class Hints {
        public void showHint(int viewResource);
    }

    private static final String TAG = "Hints";
    private static final String PREF_VOICE_HINT_NUM_UNIQUE_DAYS_SHOWN =
            "voice_hint_num_unique_days_shown";
    private static final String PREF_VOICE_HINT_LAST_TIME_SHOWN =
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public class InputLanguageSelection extends PreferenceActivity {
        "ko", "ja", "zh", "el"
    };

    private static class Loc implements Comparable {
    private static class Loc implements Comparable<Object> {
        static Collator sCollator = Collator.getInstance();

        String label;
+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.inputmethodservice.Keyboard;
import android.preference.PreferenceManager;
import android.view.InflateException;

+0 −1
Original line number Diff line number Diff line
@@ -398,7 +398,6 @@ public class LatinIME extends InputMethodService
    static int[] getDictionary(Resources res) {
        String packageName = LatinIME.class.getPackage().getName();
        XmlResourceParser xrp = res.getXml(R.xml.dictionary);
        int dictionaryCount = 0;
        ArrayList<Integer> dictionaries = new ArrayList<Integer>();

        try {
Loading