mirror of https://github.com/apache/lucene.git
Remove useless todo. (#13589)
This commit is contained in:
parent
b42fd8e479
commit
c245ed2fb4
|
@ -85,8 +85,6 @@ public class PerThreadPKLookup {
|
||||||
if (termsEnums[seg].seekExact(id)) {
|
if (termsEnums[seg].seekExact(id)) {
|
||||||
postingsEnums[seg] = termsEnums[seg].postings(postingsEnums[seg], 0);
|
postingsEnums[seg] = termsEnums[seg].postings(postingsEnums[seg], 0);
|
||||||
int docID = -1;
|
int docID = -1;
|
||||||
// TODO: Can we get postings' last Doc directly? and return the last one we find.
|
|
||||||
// TODO: Maybe we should check liveDoc whether null out of the loop?
|
|
||||||
while ((docID = postingsEnums[seg].nextDoc()) != PostingsEnum.NO_MORE_DOCS) {
|
while ((docID = postingsEnums[seg].nextDoc()) != PostingsEnum.NO_MORE_DOCS) {
|
||||||
if (liveDocs[seg] == null || liveDocs[seg].get(docID)) {
|
if (liveDocs[seg] == null || liveDocs[seg].get(docID)) {
|
||||||
return docBases[seg] + docID;
|
return docBases[seg] + docID;
|
||||||
|
|
Loading…
Reference in New Issue