Skip to content

Commit

Permalink
Remove unused BwC helper (#94532)
Browse files Browse the repository at this point in the history
  • Loading branch information
howardhuanghua authored Mar 18, 2023
1 parent e43e7c2 commit c3b9483
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> headers) {
return new CancellableTask(id, type, action, "", parentTaskId, headers);
Expand Down

0 comments on commit c3b9483

Please sign in to comment.