diff options
author | Martin Polden <mpolden@mpolden.no> | 2020-03-13 13:05:30 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2020-03-14 10:14:32 +0100 |
commit | 6c814045134cf2a0762b90414dedeb18e864aff7 (patch) | |
tree | 5cdf6bc1d21b312e2c471508c0d42d109aadf79b /controller-server | |
parent | 6aac6b3ccb8afd261c60b745b0592fe8ccc20728 (diff) |
Remove unused field
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/Endpoint.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/Endpoint.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/Endpoint.java index e5848055603..ed5add8b98a 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/Endpoint.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/Endpoint.java @@ -35,10 +35,9 @@ public class Endpoint { private final boolean legacy; private final RoutingMethod routingMethod; private final boolean tls; - private final boolean wildcard; - private Endpoint(String name, ApplicationId application, List<ZoneId> zones, Scope scope, SystemName system, Port port, - boolean legacy, RoutingMethod routingMethod, boolean wildcard) { + private Endpoint(String name, ApplicationId application, List<ZoneId> zones, Scope scope, SystemName system, + Port port, boolean legacy, RoutingMethod routingMethod) { Objects.requireNonNull(name, "name must be non-null"); Objects.requireNonNull(application, "application must be non-null"); Objects.requireNonNull(zones, "zones must be non-null"); @@ -56,7 +55,6 @@ public class Endpoint { this.legacy = legacy; this.routingMethod = routingMethod; this.tls = port.tls; - this.wildcard = wildcard; } /** @@ -111,11 +109,6 @@ public class Endpoint { return routingMethod.isShared() && scope == Scope.global; } - /** Returns whether this is a wildcard endpoint (used only in certificates) */ - public boolean wildcard() { - return wildcard; - } - /** Returns the upstream ID of given deployment. This *must* match what the routing layer generates */ public String upstreamIdOf(DeploymentId deployment) { if (scope != Scope.global) throw new IllegalArgumentException("Scope " + scope + " does not have upstream name"); @@ -393,7 +386,7 @@ public class Endpoint { if (routingMethod.isDirect() && !port.isDefault()) { throw new IllegalArgumentException("Routing method " + routingMethod + " can only use default port"); } - return new Endpoint(name, application, zones, scope, system, port, legacy, routingMethod, wildcard); + return new Endpoint(name, application, zones, scope, system, port, legacy, routingMethod); } } |