diff --git a/test/framework/src/main/java/org/opensearch/test/InternalTestCluster.java b/test/framework/src/main/java/org/opensearch/test/InternalTestCluster.java index baaf17aec0907..ec88002317284 100644 --- a/test/framework/src/main/java/org/opensearch/test/InternalTestCluster.java +++ b/test/framework/src/main/java/org/opensearch/test/InternalTestCluster.java @@ -2164,10 +2164,6 @@ public String getClusterManagerName(@Nullable String viaNode) { } } - public Set getClusterManagers() { - return nodes.entrySet().stream().filter(entry -> CLUSTER_MANAGER_NODE_PREDICATE.test(entry.getValue())).map(Map.Entry::getKey).collect(Collectors.toSet()); - } - /** * Returns the name of the current cluster-manager node in the cluster. *