Skip to content

Commit

Permalink
Removed unused array (#15364) (#16725)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5817710)

Signed-off-by: Dmitry Kryukov <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4b91540 commit dc7b4d4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ protected final InternalAggregations[] buildSubAggsForBuckets(long[] bucketOrdsT
}
InternalAggregations[] result = new InternalAggregations[bucketOrdsToCollect.length];
for (int ord = 0; ord < bucketOrdsToCollect.length; ord++) {
InternalAggregation[] slice = new InternalAggregation[subAggregators.length];
for (int i = 0; i < subAggregators.length; i++) {
slice[i] = aggregations[i][ord];
}
final int thisOrd = ord;
result[ord] = InternalAggregations.from(new AbstractList<InternalAggregation>() {
@Override
Expand Down

0 comments on commit dc7b4d4

Please sign in to comment.