diff --git a/src/main/java/org/elasticsearch/common/lucene/docset/DocIdSets.java b/src/main/java/org/elasticsearch/common/lucene/docset/DocIdSets.java index 0ecef992900..e2f417fb3b1 100644 --- a/src/main/java/org/elasticsearch/common/lucene/docset/DocIdSets.java +++ b/src/main/java/org/elasticsearch/common/lucene/docset/DocIdSets.java @@ -24,7 +24,6 @@ import org.apache.lucene.search.DocIdSet; import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.util.Bits; import org.apache.lucene.util.FixedBitSet; -import org.apache.lucene.util.OpenBitSetIterator; import org.elasticsearch.common.Nullable; import java.io.IOException; @@ -56,15 +55,6 @@ public class DocIdSets { return set instanceof FixedBitSet; } - /** - * Is {@link org.apache.lucene.search.DocIdSetIterator} implemented in a "fast" manner. - * For example, it does not ends up iterating one doc at a time check for its "value". - */ - public static boolean isFastIterator(DocIdSetIterator iterator) { - // this is the iterator in the FixedBitSet. - return iterator instanceof OpenBitSetIterator; - } - /** * Converts to a cacheable {@link DocIdSet} *