Ignore:
Timestamp:
2017-08-28T18:48:58+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - refactor PurgeAction/PurgeCommand to avoid unneeded dependence on action

File:
1 edited

Legend:

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

    r12620 r12688  
    2121import org.openstreetmap.josm.actions.JoinAreasAction.JoinAreasResult;
    2222import org.openstreetmap.josm.actions.JoinAreasAction.Multipolygon;
    23 import org.openstreetmap.josm.actions.PurgeAction;
     23import org.openstreetmap.josm.command.PurgeCommand;
    2424import org.openstreetmap.josm.data.coor.LatLon;
    2525import org.openstreetmap.josm.data.osm.DataSet;
     
    104104        }
    105105        // Purge all other ways and relations so dataset only contains lefthand traffic data
    106         new PurgeAction(false).getPurgeCommand(toPurge).executeCommand();
     106        PurgeCommand.build(null, toPurge, null).executeCommand();
    107107        // Combine adjacent countries into a single polygon
    108108        Collection<Way> optimizedWays = new ArrayList<>();
Note: See TracChangeset for help on using the changeset viewer.