altosuilib: Eliminate extra MapCache in AltosUIMapPreloadNew
authorKeith Packard <keithp@keithp.com>
Thu, 28 May 2015 08:00:47 +0000 (01:00 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 28 May 2015 08:00:47 +0000 (01:00 -0700)
Use the cache from the map.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIMapPreloadNew.java

index 20cb3888f611e3b7b92e810fd12f732da1d0cc8c..4a5764c83a0a14f464ea625af983d446225e25a0 100644 (file)
@@ -121,7 +121,6 @@ class AltosUIMapPos extends Box {
 public class AltosUIMapPreloadNew extends AltosUIFrame implements ActionListener, ItemListener, AltosLaunchSiteListener, AltosMapLoaderListener  {
        AltosUIFrame    owner;
        AltosUIMapNew   map;
-       AltosMapCache   cache;
 
        AltosUIMapPos   lat;
        AltosUIMapPos   lon;
@@ -255,9 +254,8 @@ public class AltosUIMapPreloadNew extends AltosUIFrame implements ActionListener
                pane.setLayout(new GridBagLayout());
 
                map = new AltosUIMapNew();
-               cache = new AltosMapCache(map);
 
-               loader = new AltosMapLoader(map.map, cache, this);
+               loader = new AltosMapLoader(map.map, this);
 
                c.fill = GridBagConstraints.BOTH;
                c.anchor = GridBagConstraints.CENTER;