src/main/java/io/netty/handler/codec/http/router/OrderlessRouter.java
public void removeTarget(T target) {
        Set<PathPattern> patterns = reverseRoutes.remove(ObjectUtil.checkNotNull(target, "target"));
        if (patterns == null) {
            return;
        }

        // A pattern can only point to one target.
        // A target can have multiple patterns.
        // Remove all patterns leading to this target.
        for (PathPattern pattern : patterns) {
            routes.remove(pattern);
        }
    }
public void removeTarget(T target) {
        Set<PathPattern> patterns = reverseRoutes.remove(ObjectUtil.checkNotNull(target, "target"));
        if (patterns == null) {
            return;
        }

        // A pattern can only point to one target.
        // A target can have multiple patterns.
        // Remove all patterns leading to this target.
        for (PathPattern pattern : patterns) {
            routes.remove(pattern);
        }
    }
Removes all routes leading to the target.