From 3e792f61ad702b77cc3c4d6d2887e7475f4ffde6 Mon Sep 17 00:00:00 2001 From: Dan Zivkovic Date: Mon, 23 Mar 2015 13:31:51 -0700 Subject: [PATCH] Minor unit test fixes. Change-Id: I800bb33a10f31d5b934b00768bc8fe4776e36f90 --- .../com/android/inputmethod/latin/BinaryDictionaryTests.java | 4 ---- tests/src/com/android/inputmethod/latin/InputTestsBase.java | 2 -- 2 files changed, 6 deletions(-) diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java index e92831c48..e96c934cb 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java @@ -44,10 +44,6 @@ public class BinaryDictionaryTests extends AndroidTestCase { private static final String TEST_LOCALE = "test"; private static final String DICTIONARY_ID = "TestBinaryDictionary"; - private static boolean supportsNgram(final int formatVersion) { - return formatVersion >= FormatSpec.VERSION403; - } - private HashSet mDictFilesToBeDeleted = new HashSet<>(); @Override diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index 0d9b36ac0..5ab1d6b53 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -152,8 +152,6 @@ public class InputTestsBase extends ServiceTestCase { super(LatinIMEForTests.class); } - // TODO: Isn't there a way to make this generic somehow? We can take a and return a - // but we'd have to dispatch types on editor.put...() functions protected boolean setBooleanPreference(final String key, final boolean value, final boolean defaultValue) { final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mLatinIME);