summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIMapCache.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-04 23:22:20 -0700
committerKeith Packard <keithp@keithp.com>2014-07-05 00:38:09 -0700
commitcb15cb8db5ef570b57f89d4e58734554542f99ff (patch)
treeaaad21256a2e1caf4f589ab11e9cf228c979f9bb /altosuilib/AltosUIMapCache.java
parent2e99ff2c99f5d4a2fa196507e794c690665ab39e (diff)
altosuilib: Remove debug printfs from map cache
Just annoying Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIMapCache.java')
-rw-r--r--altosuilib/AltosUIMapCache.java8
1 files changed, 1 insertions, 7 deletions
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;