Ignore:
Timestamp:
2013-11-02T16:52:15+01:00 (6 years ago)
Author:
Don-vip
Message:

code cleanup

File:
1 edited

Legend:

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

    r6336 r6355  
    2020import java.util.ArrayList;
    2121import java.util.Collection;
    22 import java.util.Iterator;
    2322import java.util.LinkedList;
    2423import java.util.List;
     
    445444                // Deleting the highlighted node
    446445
    447                 //check to see if node has interesting keys
    448                 Iterator<String> keyIterator = candidateNode.getKeys().keySet().iterator();
    449                 boolean hasTags = false;
    450                 while (keyIterator.hasNext()) {
    451                     String key = keyIterator.next();
    452                     if (!OsmPrimitive.isUninterestingKey(key)) {
    453                         hasTags = true;
    454                         break;
    455                     }
    456                 }
    457 
    458446                //check to see if node is in use by more than one object
    459447                List<OsmPrimitive> referrers = candidateNode.getReferrers();
     
    463451                            tr("Cannot delete node that is referenced by multiple objects"),
    464452                            tr("Error"), JOptionPane.ERROR_MESSAGE);
    465                 } else if (hasTags) {
     453                } else if (candidateNode.isTagged()) {
    466454                    JOptionPane.showMessageDialog(Main.parent,
    467455                            tr("Cannot delete node that has tags"),
Note: See TracChangeset for help on using the changeset viewer.