Changeset 9290 in josm for trunk/src/org


Ignore:
Timestamp:
2016-01-03T23:59:17+01:00 (4 years ago)
Author:
simon04
Message:

Refactoring (use OsmPrimitive#removeAll)

File:
1 edited

Legend:

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

    r9243 r9290  
    15101510    private void stripTags(Collection<Way> ways) {
    15111511        for (Way w : ways) {
    1512             stripTags(w);
     1512            w.removeAll();
    15131513        }
    15141514        /* I18N: current action printed in status display */
    15151515        commitCommands(marktr("Remove tags from inner ways"));
    1516     }
    1517 
    1518     /**
    1519      * Remove all tags from the way
    1520      * @param x The Way to remove all tags from
    1521      */
    1522     private void stripTags(Way x) {
    1523         Way y = new Way(x);
    1524         for (String key : x.keySet()) {
    1525             y.remove(key);
    1526         }
    1527         cmds.add(new ChangeCommand(x, y));
    15281516    }
    15291517
Note: See TracChangeset for help on using the changeset viewer.