Skip to content

Commit f004bf4

Browse files
Remove PATH_PARAMETERS constant
1 parent b6df9a5 commit f004bf4

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplainRequest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ public class ClusterAllocationExplainRequest extends MasterNodeRequest<ClusterAl
3535
public static final String CURRENT_NODE_PARAMETER_NAME = "current_node";
3636
public static final String INCLUDE_YES_DECISIONS_PARAMETER_NAME = "include_yes_decisions";
3737
public static final String INCLUDE_DISK_INFO_PARAMETER_NAME = "include_disk_info";
38-
public static final Set<String> PATH_PARAMETERS = Set.of(
39-
INDEX_PARAMETER_NAME,
40-
SHARD_PARAMETER_NAME,
41-
PRIMARY_PARAMETER_NAME,
42-
CURRENT_NODE_PARAMETER_NAME
43-
);
4438

4539
private static final ObjectParser<ClusterAllocationExplainRequest, Void> PARSER = new ObjectParser<>("cluster/allocation/explain");
4640
static {

server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestClusterAllocationExplainAction.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,6 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
9898
);
9999
}
100100

101-
private boolean hasAnyParameterBeenPassed(RestRequest request) {
102-
for (String parameter : ClusterAllocationExplainRequest.PATH_PARAMETERS) {
103-
if (request.hasParam(parameter)) {
104-
return true;
105-
}
106-
}
107-
return false;
108-
}
109-
110101
@Override
111102
public boolean canTripCircuitBreaker() {
112103
return false;

0 commit comments

Comments
 (0)