Removed unused methods
This commit is contained in:
parent
0fd19008b1
commit
1bb7ca8a85
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue