diff --git a/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/SubGroupCollector.java b/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/SubGroupCollector.java index 71650cb402348..63491a63243dc 100644 --- a/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/SubGroupCollector.java +++ b/x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/SubGroupCollector.java @@ -33,12 +33,12 @@ public static SubGroupCollector attach( String[] aggregationFields, boolean legacyAggregationField ) { - SubGroupCollector c = new SubGroupCollector(parentAggregation, aggregationFields, legacyAggregationField); + SubGroupCollector c = new SubGroupCollector(aggregationFields, legacyAggregationField); c.addAggregations(parentAggregation); return c; } - private SubGroupCollector(AbstractAggregationBuilder parentAggregation, String[] aggregationFields, boolean legacyAggregationField) { + private SubGroupCollector(String[] aggregationFields, boolean legacyAggregationField) { this.aggregationFields = aggregationFields; this.legacyAggregationField = legacyAggregationField; }