diff options
author | Keith Packard <keithp@keithp.com> | 2015-05-28 01:00:47 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-05-28 01:00:47 -0700 |
commit | c63617415553d97f9be2f19b94365b53d4480c68 (patch) | |
tree | 05d010e866b020dc77896d54d93eeab5f7a1acb5 /altosuilib | |
parent | ff01fb7275973cdbfd976d3b4e638c6235108121 (diff) |
altosuilib: Eliminate extra MapCache in AltosUIMapPreloadNew
Use the cache from the map.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib')
-rw-r--r-- | altosuilib/AltosUIMapPreloadNew.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/altosuilib/AltosUIMapPreloadNew.java b/altosuilib/AltosUIMapPreloadNew.java index 20cb3888..4a5764c8 100644 --- a/altosuilib/AltosUIMapPreloadNew.java +++ b/altosuilib/AltosUIMapPreloadNew.java @@ -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; |