From f2d6eadcfe522fd422d139e5dd59fb46805f7ea3 Mon Sep 17 00:00:00 2001 From: retgal Date: Fri, 13 Dec 2024 12:02:45 +0100 Subject: [PATCH] Improve cache --- src/main/java/mpo/dayon/common/squeeze/RegularTileCache.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/mpo/dayon/common/squeeze/RegularTileCache.java b/src/main/java/mpo/dayon/common/squeeze/RegularTileCache.java index 99553d6f..1b9a7622 100644 --- a/src/main/java/mpo/dayon/common/squeeze/RegularTileCache.java +++ b/src/main/java/mpo/dayon/common/squeeze/RegularTileCache.java @@ -20,11 +20,6 @@ public RegularTileCache(int maxSize, int purgeSize) { this.maxSize = maxSize; this.purgeSize = purgeSize; tiles = new LinkedHashMap<>(maxSize, 0.75f, true) { - @Override - protected boolean removeEldestEntry(Map.Entry eldest) { - return size() > maxSize; - } - @Override public CaptureTile get(Object key) { CaptureTile tile = super.get(key);