From 207dfc457dc310eb8b9e098f938c92c5dea79177 Mon Sep 17 00:00:00 2001 From: Yannick Welsch Date: Mon, 28 Dec 2015 10:20:55 +0100 Subject: [PATCH] Remove superfluous method --- .../allocation/allocator/BalancedShardsAllocator.java | 8 -------- 1 file changed, 8 deletions(-) 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