From: Keith Packard Date: Sat, 5 Jul 2014 06:22:20 +0000 (-0700) Subject: altosuilib: Remove debug printfs from map cache X-Git-Tag: 1.4.9.1~19 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=cb15cb8db5ef570b57f89d4e58734554542f99ff;ds=sidebyside altosuilib: Remove debug printfs from map cache Just annoying Signed-off-by: Keith Packard --- diff --git a/altosuilib/AltosUIMapCache.java b/altosuilib/AltosUIMapCache.java index 9cc32e24..b9064cf4 100644 --- a/altosuilib/AltosUIMapCache.java +++ b/altosuilib/AltosUIMapCache.java @@ -52,8 +52,6 @@ public class AltosUIMapCache implements AltosUIMapCacheListener { if (new_size == cache_size) return; - System.out.printf("cache size now %d\n", new_size); - synchronized(cache_lock) { AltosUIMapImage[] new_images = new AltosUIMapImage[new_size]; @@ -94,12 +92,8 @@ public class AltosUIMapCache implements AltosUIMapCacheListener { try { image = new AltosUIMapImage(tile, store); image.used = used++; - if (images[oldest] != null) { - System.out.printf("drop %s\n", images[oldest].store.file.toString()); + if (images[oldest] != null) images[oldest].flush(); - } - - System.out.printf("load %s\n", store.file.toString()); images[oldest] = image;