summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Welsch <yannick@welsch.lu>2017-06-30 12:25:56 +0200
committerYannick Welsch <yannick@welsch.lu>2017-06-30 12:25:56 +0200
commit1fee1045b960ed1a582ff84ddd844e8b11bdfaa5 (patch)
tree2bcf5b16ff322e578aa4eecc155e6d0274910bd8
parent099ccd36eee6903805c2f885d9218f22fb04c9d9 (diff)
Remove dead code and stale Javadoc
-rw-r--r--core/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java b/core/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java
index 97f57e216c..0f8ae2185e 100644
--- a/core/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java
+++ b/core/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java
@@ -382,14 +382,11 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent imple
/**
* Removes shards that are currently loaded by indicesService but have disappeared from the routing table of the current node.
- * Also removes shards where the recovery source node has changed.
* This method does not delete the shard data.
*
* @param state new cluster state
*/
private void removeShards(final ClusterState state) {
- final RoutingTable routingTable = state.routingTable();
- final DiscoveryNodes nodes = state.nodes();
final String localNodeId = state.nodes().getLocalNodeId();
assert localNodeId != null;