projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosuilib: Remove debug printfs from map cache
[fw/altos]
/
altosuilib
/
AltosUIMapCache.java
diff --git
a/altosuilib/AltosUIMapCache.java
b/altosuilib/AltosUIMapCache.java
index 9cc32e24d4adec1544f1d69c8eba6e915c63932c..b9064cf435860fc4b812c6e93c566845f8ed14bc 100644
(file)
--- a/
altosuilib/AltosUIMapCache.java
+++ b/
altosuilib/AltosUIMapCache.java
@@
-52,8
+52,6
@@
public class AltosUIMapCache implements AltosUIMapCacheListener {
if (new_size == cache_size)
return;
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];
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++;
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();
images[oldest].flush();
- }
-
- System.out.printf("load %s\n", store.file.toString());
images[oldest] = image;
images[oldest] = image;