diff options
author | 2015-03-20 11:16:46 -0700 | |
---|---|---|
committer | 2015-03-20 11:16:46 -0700 | |
commit | c15bbb52a37be751fed2ba7e765dfd7727306308 (patch) | |
tree | 9fcbae84e121d0cdef5a3d74c6c5e2680dbc003a /tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java | |
parent | fe716f0f73ee551ce42b523983f92efccce79dc8 (diff) | |
download | latinime-c15bbb52a37be751fed2ba7e765dfd7727306308.tar.gz latinime-c15bbb52a37be751fed2ba7e765dfd7727306308.tar.xz latinime-c15bbb52a37be751fed2ba7e765dfd7727306308.zip |
Retire Delight2 migration code to speed up tests.
We're waiting 10 minutes for tests to run, and half of that time is spent in
depreacted code related to migration of Delight2 dictionary files.
LatinIME will never migrate another Delight2 dictionary file again, so we can
delete this code.
Change-Id: I05c7d8429e8d9a26139456763c77997340fea8c2
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java index a432ca740..da1b32a8b 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java @@ -43,22 +43,12 @@ public final class BinaryDictIOUtils { */ public static DictDecoder getDictDecoder(final File dictFile, final long offset, final long length, final int bufferType) { - if (dictFile.isDirectory()) { - return new Ver4DictDecoder(dictFile); - } else if (dictFile.isFile()) { - return new Ver2DictDecoder(dictFile, offset, length, bufferType); - } - return null; + return new Ver4DictDecoder(dictFile); } public static DictDecoder getDictDecoder(final File dictFile, final long offset, final long length, final DictionaryBufferFactory factory) { - if (dictFile.isDirectory()) { - return new Ver4DictDecoder(dictFile); - } else if (dictFile.isFile()) { - return new Ver2DictDecoder(dictFile, offset, length, factory); - } - return null; + return new Ver4DictDecoder(dictFile); } public static DictDecoder getDictDecoder(final File dictFile, final long offset, |