diff --git a/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodes.java b/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodes.java index 895195d35b3..76c8e9a0e52 100644 --- a/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodes.java +++ b/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodes.java @@ -56,19 +56,17 @@ public class DiscoveryNodes extends AbstractDiffable implements private final String masterNodeId; private final String localNodeId; - private final Version minNodeVersion; private final Version minNonClientNodeVersion; private DiscoveryNodes(ImmutableOpenMap nodes, ImmutableOpenMap dataNodes, ImmutableOpenMap masterNodes, ImmutableOpenMap ingestNodes, - String masterNodeId, String localNodeId, Version minNodeVersion, Version minNonClientNodeVersion) { + String masterNodeId, String localNodeId, Version minNonClientNodeVersion) { this.nodes = nodes; this.dataNodes = dataNodes; this.masterNodes = masterNodes; this.ingestNodes = ingestNodes; this.masterNodeId = masterNodeId; this.localNodeId = localNodeId; - this.minNodeVersion = minNodeVersion; this.minNonClientNodeVersion = minNonClientNodeVersion; } @@ -173,7 +171,6 @@ public class DiscoveryNodes extends AbstractDiffable implements return existing != null && existing.equals(node); } - /** * Get the id of the master node * @@ -230,16 +227,6 @@ public class DiscoveryNodes extends AbstractDiffable implements return nodesIds == null || nodesIds.length == 0 || (nodesIds.length == 1 && nodesIds[0].equals("_all")); } - - /** - * Returns the version of the node with the oldest version in the cluster - * - * @return the oldest version in the cluster - */ - public Version getSmallestVersion() { - return minNodeVersion; - } - /** * Returns the version of the node with the oldest version in the cluster that is not a client node * @@ -677,7 +664,7 @@ public class DiscoveryNodes extends AbstractDiffable implements return new DiscoveryNodes( nodes.build(), dataNodesBuilder.build(), masterNodesBuilder.build(), ingestNodesBuilder.build(), - masterNodeId, localNodeId, minNodeVersion, minNonClientNodeVersion + masterNodeId, localNodeId, minNonClientNodeVersion ); }