Ignore:
Timestamp:
2017-11-28T00:56:29+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15310 - remove most of deprecated APIs

File:
1 edited

Legend:

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

    r12846 r13173  
    3030import org.openstreetmap.josm.data.osm.Way;
    3131import org.openstreetmap.josm.data.osm.WayData;
    32 import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    3332import org.openstreetmap.josm.spi.preferences.Config;
    3433import org.openstreetmap.josm.tools.ImageProvider;
     
    4443
    4544    protected final ConflictCollection purgedConflicts = new ConflictCollection();
    46 
    47     /**
    48      * Constructs a new {@code PurgeCommand} (handles conflicts).
    49      * This command relies on a number of consistency conditions:
    50      *  - makeIncomplete must be a subset of toPurge.
    51      *  - Each primitive, that is in toPurge but not in makeIncomplete, must have all its referrers in toPurge.
    52      *  - Each element of makeIncomplete must not be new and must have only referrers that are either a relation or included in toPurge.
    53      * @param layer OSM data layer
    54      * @param toPurge primitives to purge
    55      * @param makeIncomplete primitives to make incomplete
    56      * @deprecated to be removed end of 2017. Use {@link #PurgeCommand(DataSet, Collection, Collection)} instead
    57      */
    58     @Deprecated
    59     public PurgeCommand(OsmDataLayer layer, Collection<OsmPrimitive> toPurge, Collection<OsmPrimitive> makeIncomplete) {
    60         super(layer);
    61         init(toPurge, makeIncomplete);
    62     }
    6345
    6446    /**
     
    316298    /**
    317299     * Creates a new {@code PurgeCommand} to purge selected OSM primitives.
    318      * @param layer optional osm data layer, can be null
    319      * @param sel selected OSM primitives
    320      * @param toPurgeAdditionally optional list that will be filled with primitives to be purged that have not been in the selection
    321      * @return command to purge selected OSM primitives
    322      * @since 12688
    323      * @deprecated to be removed end of 2017. Use {@link #build(Collection, List)} instead
    324      */
    325     @Deprecated
    326     public static PurgeCommand build(OsmDataLayer layer, Collection<OsmPrimitive> sel, List<OsmPrimitive> toPurgeAdditionally) {
    327         return build(sel, toPurgeAdditionally);
    328     }
    329 
    330     /**
    331      * Creates a new {@code PurgeCommand} to purge selected OSM primitives.
    332300     * @param sel selected OSM primitives
    333301     * @param toPurgeAdditionally optional list that will be filled with primitives to be purged that have not been in the selection
Note: See TracChangeset for help on using the changeset viewer.