Ignore:
Timestamp:
2018-07-06T01:32:11+02:00 (6 years ago)
Author:
Don-vip
Message:

remove deprecated API

Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r14003 r14005  
    13591359    }
    13601360
    1361     /**
    1362      * Gets a collection of primitives that should not be hidden by the filter.
    1363      * @return The primitives that the filter should not hide.
    1364      * @deprecated use {@link org.openstreetmap.josm.data.osm.DataSet#allPreservedPrimitives}
    1365      * @since 11993
    1366      */
    1367     @Override
    1368     @Deprecated
    1369     public Collection<? extends OsmPrimitive> getPreservedPrimitives() {
    1370         DataSet ds = getLayerManager().getEditDataSet();
    1371         return ds != null ? ds.allPreservedPrimitives() : Collections.emptySet();
    1372     }
    1373 
    13741361    @Override
    13751362    public boolean layerIsSupported(Layer l) {
  • trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r13847 r14005  
    88import java.awt.event.MouseListener;
    99import java.awt.event.MouseMotionListener;
    10 import java.util.Collection;
    11 import java.util.Collections;
    1210
    1311import javax.swing.Action;
    1412
    1513import org.openstreetmap.josm.actions.JosmAction;
    16 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1714import org.openstreetmap.josm.gui.MainApplication;
    1815import org.openstreetmap.josm.gui.MapFrame;
     
    237234
    238235    /**
    239      * Gets a collection of primitives that should not be hidden by the filter.
    240      * @return The primitives that the filter should not hide.
    241      * @deprecated use {@link org.openstreetmap.josm.data.osm.DataSet#allPreservedPrimitives}
    242      * @since 11993
    243      */
    244     @Deprecated
    245     public Collection<? extends OsmPrimitive> getPreservedPrimitives() {
    246         return Collections.emptySet();
    247     }
    248 
    249     /**
    250236     * Determines if the given layer is a data layer that can be modified.
    251237     * Useful for {@link #layerIsSupported(Layer)} implementations.
Note: See TracChangeset for help on using the changeset viewer.