diff --git a/core/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java b/core/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java index 029207261ce..8cdc9b44b3f 100644 --- a/core/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java +++ b/core/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java @@ -259,14 +259,6 @@ public class BalancedShardsAllocator extends AbstractComponent implements Shards return avgShardsPerNode; } - /** - * Returns the global average of primaries per node - */ - public float avgPrimariesPerNode() { - return ((float) metaData.numberOfShards()) / nodes.size(); - } - - /** * Returns a new {@link NodeSorter} that sorts the nodes based on their * current weight with respect to the index passed to the sorter. The