summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
index 7d92dec5b66..339d11bfa81 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
@@ -722,14 +722,4 @@ public class NodeRepository extends AbstractComponent {
return node.allocation().isPresent() ? lock(node.allocation().get().owner()) : lockAllocation();
}
- /**
- * Require that given node is distinct from other node
- *
- * @throws IllegalArgumentException if a constraint is violated
- */
- private static void requireDistinct(Node node, Node other) {
- if (node.equals(other))
- throw new IllegalArgumentException("Cannot add " + node.hostname() + ": A node with this name already exists");
- }
-
}