From b70d97f36b0d4e9905a98f2bb98a5fe6ee668976 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Thu, 3 Dec 2015 13:42:05 -0500 Subject: [PATCH] Remove unnecessary method in AllocationService --- .../cluster/routing/allocation/AllocationService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java b/core/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java index e19d51981a6..f819d6fde0a 100644 --- a/core/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java +++ b/core/src/main/java/org/elasticsearch/cluster/routing/allocation/AllocationService.java @@ -98,11 +98,7 @@ public class AllocationService extends AbstractComponent { } public RoutingAllocation.Result applyFailedShard(ClusterState clusterState, ShardRouting failedShard) { - return applyFailedShard(clusterState, new FailedRerouteAllocation.FailedShard(failedShard, null, null)); - } - - public RoutingAllocation.Result applyFailedShard(ClusterState clusterState, FailedRerouteAllocation.FailedShard failedShard) { - return applyFailedShards(clusterState, Collections.singletonList(failedShard)); + return applyFailedShards(clusterState, Collections.singletonList(new FailedRerouteAllocation.FailedShard(failedShard, null, null))); } /**