Changeset 994 in josm for trunk/src/org


Ignore:
Timestamp:
2008-09-19T13:21:21+02:00 (16 years ago)
Author:
stoecker
Message:

removed some legacy code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r941 r994  
    120120        public final LinkedList<ModifiedChangedListener> listenerModified = new LinkedList<ModifiedChangedListener>();
    121121        public final LinkedList<DataChangeListener> listenerDataChanged = new LinkedList<DataChangeListener>();
    122        
    123         private SimplePaintVisitor wireframeMapPainter = new SimplePaintVisitor();
    124         private MapPaintVisitor standardMapPainter = new MapPaintVisitor();
    125        
     122
    126123        /**
    127124         * Construct a OsmDataLayer.
     
    166163                }
    167164               
    168                 if (Main.pref.getBoolean("draw.wireframe")) {
    169                         wireframeMapPainter.setGraphics(g);
    170                         wireframeMapPainter.setNavigatableComponent(mv);
    171                         wireframeMapPainter.inactive = inactive;
    172                         wireframeMapPainter.visitAll(data, virtual);
    173                 }
     165       
     166                SimplePaintVisitor painter;
     167                if (Main.pref.getBoolean("draw.wireframe"))
     168                        painter = new SimplePaintVisitor();
    174169                else
    175                 {
    176                         standardMapPainter.setGraphics(g);
    177                         standardMapPainter.setNavigatableComponent(mv);
    178                         standardMapPainter.inactive = inactive;
    179                         standardMapPainter.visitAll(data, virtual);
    180                 }
     170                        painter = new MapPaintVisitor();
     171                painter.setGraphics(g);
     172                painter.setNavigatableComponent(mv);
     173                painter.inactive = inactive;
     174                painter.visitAll(data, virtual);
    181175                Main.map.conflictDialog.paintConflicts(g, mv);
    182176        }
Note: See TracChangeset for help on using the changeset viewer.