Skip to content

Commit

Permalink
Remove unused DocIdSet#all method
Browse files Browse the repository at this point in the history
DocIdSet#all is no longer relevant since Query and Filter were merged.
We can remove it.
  • Loading branch information
javanna committed Feb 25, 2025
1 parent a230c5a commit a51fe76
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lucene/core/src/java/org/apache/lucene/search/DocIdSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@ public long ramBytesUsed() {
}
};

/** A {@code DocIdSet} that matches all doc ids up to a specified doc (exclusive). */
public static DocIdSet all(int maxDoc) {
return new DocIdSet() {
@Override
public DocIdSetIterator iterator() throws IOException {
return DocIdSetIterator.all(maxDoc);
}

@Override
public Bits bits() throws IOException {
return new Bits.MatchAllBits(maxDoc);
}

@Override
public long ramBytesUsed() {
return Integer.BYTES;
}
};
}

/**
* Provides a {@link DocIdSetIterator} to access the set. This implementation can return <code>
* null</code> if there are no docs that match.
Expand Down

0 comments on commit a51fe76

Please sign in to comment.