Changeset 12010 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-04-27T23:02:42+02:00 (8 years ago)
Author:
Don-vip
Message:

remove unused methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r11995 r12010  
    5656import org.openstreetmap.josm.data.Bounds;
    5757import org.openstreetmap.josm.data.Preferences;
    58 import org.openstreetmap.josm.data.ProjectionBounds;
    5958import org.openstreetmap.josm.data.UndoRedoHandler;
    60 import org.openstreetmap.josm.data.ViewportData;
    6159import org.openstreetmap.josm.data.cache.JCSCacheManager;
    6260import org.openstreetmap.josm.data.coor.CoordinateFormat;
     
    7573import org.openstreetmap.josm.gui.ProgramArguments.Option;
    7674import org.openstreetmap.josm.gui.io.SaveLayersDialog;
    77 import org.openstreetmap.josm.gui.layer.Layer;
    7875import org.openstreetmap.josm.gui.layer.MainLayerManager;
    7976import org.openstreetmap.josm.gui.layer.OsmDataLayer.CommandQueueListener;
     
    620617
    621618    /**
    622      * Add a new layer to the map.
    623      *
    624      * If no map exists, create one.
    625      *
    626      * @param layer the layer
    627      * @param bounds the bounds of the layer (target zoom area); can be null, then
    628      * the viewport isn't changed
    629      */
    630     public final void addLayer(Layer layer, ProjectionBounds bounds) {
    631         addLayer(layer, bounds == null ? null : new ViewportData(bounds));
    632     }
    633 
    634     /**
    635      * Add a new layer to the map.
    636      *
    637      * If no map exists, create one.
    638      *
    639      * @param layer the layer
    640      * @param viewport the viewport to zoom to; can be null, then the viewport isn't changed
    641      */
    642     public final void addLayer(Layer layer, ViewportData viewport) {
    643         getLayerManager().addLayer(layer);
    644         if (viewport != null && Main.map.mapView != null) {
    645             // MapView may be null in headless mode here.
    646             Main.map.mapView.scheduleZoomTo(viewport);
    647         }
    648     }
    649 
    650     /**
    651619     * Replies the current selected primitives, from a end-user point of view.
    652620     * It is not always technically the same collection of primitives than {@link DataSet#getSelected()}.
Note: See TracChangeset for help on using the changeset viewer.