From 5c30972efc8d237f7c1f99a5743d1d39babf1dbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 30 Oct 2016 02:17:07 +0200 Subject: [PATCH] Get rid of pointless double-caching. --- src/com/hughes/android/dictionary/engine/Index.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/hughes/android/dictionary/engine/Index.java b/src/com/hughes/android/dictionary/engine/Index.java index e52ac62..88aa22d 100644 --- a/src/com/hughes/android/dictionary/engine/Index.java +++ b/src/com/hughes/android/dictionary/engine/Index.java @@ -227,7 +227,7 @@ public final class Index implements RAFSerializable { for (int i = 0; i < size; ++i) { htmlEntryIndices[i] = StringUtil.readVarInt(raf); } - this.htmlEntries = CachingList.create(new AbstractList() { + this.htmlEntries = new AbstractList() { @Override public HtmlEntry get(int i) { return index.dict.htmlEntries.get(htmlEntryIndices[i]); @@ -236,7 +236,7 @@ public final class Index implements RAFSerializable { public int size() { return htmlEntryIndices.length; } - }, 1); + }; } } else if (index.dict.dictFileVersion >= 6) { this.htmlEntries = CachingList.create( -- 2.43.0