Removed unused methods

This commit is contained in:
Yannick Welsch 2015-12-28 10:06:00 +01:00
parent 0fd19008b1
commit 1bb7ca8a85
1 changed files with 0 additions and 12 deletions

View File

@ -856,14 +856,6 @@ public class BalancedShardsAllocator extends AbstractComponent implements Shards
return index == null ? 0 : index.numShards();
}
public Collection<ShardRouting> shards() {
Collection<ShardRouting> result = new ArrayList<>();
for (ModelIndex index : indices.values()) {
result.addAll(index.getAllShards());
}
return result;
}
public int highestPrimary(String index) {
ModelIndex idx = indices.get(index);
if (idx != null) {
@ -941,10 +933,6 @@ public class BalancedShardsAllocator extends AbstractComponent implements Shards
return id;
}
public Decision getDecicion(ShardRouting shard) {
return shards.get(shard);
}
public int numShards() {
return shards.size();
}