Ignore:
Timestamp:
2015-10-10T21:01:42+02:00 (5 years ago)
Author:
Don-vip
Message:

sonar - Unused private method should be removed
sonar - Unused protected methods should be removed
sonar - Sections of code should not be "commented out"
sonar - Empty statements should be removed
sonar - squid:S1172 - Unused method parameters should be removed
sonar - squid:S1481 - Unused local variables should be removed

File:
1 edited

Legend:

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

    r8777 r8855  
    302302     *    <li>it is not referred to by other non-deleted primitives outside of  <code>primitivesToDelete</code></li>
    303303     * </ul>
    304      * @param layer  the layer in whose context primitives are deleted
    305304     * @param primitivesToDelete  the primitives to delete
    306305     * @return the collection of nodes referred to by primitives in <code>primitivesToDelete</code> which
    307306     * can be deleted too
    308307     */
    309     protected static Collection<Node> computeNodesToDelete(OsmDataLayer layer, Collection<OsmPrimitive> primitivesToDelete) {
     308    protected static Collection<Node> computeNodesToDelete(Collection<OsmPrimitive> primitivesToDelete) {
    310309        Collection<Node> nodesToDelete = new HashSet<>();
    311310        for (Way way : OsmPrimitive.getFilteredList(primitivesToDelete, Way.class)) {
     
    379378        if (alsoDeleteNodesInWay) {
    380379            // delete untagged nodes only referenced by primitives in primitivesToDelete, too
    381             Collection<Node> nodesToDelete = computeNodesToDelete(layer, primitivesToDelete);
     380            Collection<Node> nodesToDelete = computeNodesToDelete(primitivesToDelete);
    382381            primitivesToDelete.addAll(nodesToDelete);
    383382        }
Note: See TracChangeset for help on using the changeset viewer.