Skip to content

Commit 020bae7

Browse files
committed
remove unused field
1 parent e6fe87a commit 020bae7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/src/main/java/org/elasticsearch/index/codec/tsdb/DocValuesConsumerUtil.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ public long longValue() throws IOException {
235235
static class NumericDocValuesSub extends DocIDMerger.Sub {
236236

237237
final NumericDocValues values;
238-
int docID = -1;
239238

240239
NumericDocValuesSub(MergeState.DocMap docMap, NumericDocValues values) {
241240
super(docMap);
@@ -245,7 +244,7 @@ static class NumericDocValuesSub extends DocIDMerger.Sub {
245244

246245
@Override
247246
public int nextDoc() throws IOException {
248-
return docID = values.nextDoc();
247+
return values.nextDoc();
249248
}
250249
}
251250

@@ -334,7 +333,6 @@ public int docValueCount() {
334333
static class SortedNumericDocValuesSub extends DocIDMerger.Sub {
335334

336335
final SortedNumericDocValues values;
337-
int docID = -1;
338336

339337
SortedNumericDocValuesSub(MergeState.DocMap docMap, SortedNumericDocValues values) {
340338
super(docMap);
@@ -344,7 +342,7 @@ static class SortedNumericDocValuesSub extends DocIDMerger.Sub {
344342

345343
@Override
346344
public int nextDoc() throws IOException {
347-
return docID = values.nextDoc();
345+
return values.nextDoc();
348346
}
349347
}
350348

0 commit comments

Comments
 (0)