diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/info/NodesInfoRequest.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/info/NodesInfoRequest.java index a40743dedc002..c63546650bfe9 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/info/NodesInfoRequest.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/info/NodesInfoRequest.java @@ -106,19 +106,6 @@ public NodesInfoRequest removeMetric(String metric) { return this; } - /** - * Helper method for adding and removing metrics. Used when deserializing - * a NodesInfoRequest from an ordered list of booleans. - * - * @param addMetric Whether or not to include a metric. - * @param metricName Name of the metric to include or remove. - */ - private void optionallyAddMetric(boolean addMetric, String metricName) { - if (addMetric) { - requestedMetrics.add(metricName); - } - } - @Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); diff --git a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats/NodesStatsRequest.java b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats/NodesStatsRequest.java index 004a83e130f56..7ed8cf823eecc 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats/NodesStatsRequest.java +++ b/server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats/NodesStatsRequest.java @@ -148,17 +148,6 @@ public NodesStatsRequest removeMetric(String metric) { return this; } - /** - * Helper method for adding metrics during deserialization. - * @param includeMetric Whether or not to include a metric. - * @param metricName Name of the metric to add. - */ - private void optionallyAddMetric(boolean includeMetric, String metricName) { - if (includeMetric) { - requestedMetrics.add(metricName); - } - } - @Override public Task createTask(long id, String type, String action, TaskId parentTaskId, Map headers) { return new CancellableTask(id, type, action, "", parentTaskId, headers);