Changeset 16361 in josm for trunk


Ignore:
Timestamp:
2020-04-20T09:20:18+02:00 (4 years ago)
Author:
GerdP
Message:

deprecate dead(?) code Node.isConnectedTo(), was used by UnconnectWays before r15344

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r16212 r16361  
    357357     * @param predicate predicate to match
    358358     * @return {@code true} if {@code this} node mets the conditions
    359      */
     359     * @deprecated: Was used by UnconnectedWays test
     360     */
     361    @Deprecated
    360362    public boolean isConnectedTo(final Collection<Node> otherNodes, final int hops, Predicate<Node> predicate) {
    361363        CheckParameterUtil.ensureParameterNotNull(otherNodes);
     
    366368                : isConnectedTo(otherNodes, hops, predicate, new TreeSet<>());
    367369    }
    368 
     370    @Deprecated
    369371    private boolean isConnectedTo(final Collection<Node> otherNodes, final int hops, Predicate<Node> predicate, Set<Node> visited) {
    370372        if (otherNodes.contains(this)) {
Note: See TracChangeset for help on using the changeset viewer.