Skip to content

Commit

Permalink
Improve cache
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Dec 14, 2024
1 parent 0f614f4 commit f2d6ead
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/mpo/dayon/common/squeeze/RegularTileCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer, CaptureTile> eldest) {
return size() > maxSize;
}

@Override
public CaptureTile get(Object key) {
CaptureTile tile = super.get(key);
Expand Down

0 comments on commit f2d6ead

Please sign in to comment.