From fd592c6d7693650e9fb40e9f1e15a990ddfb1771 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Wed, 21 Oct 2015 15:34:32 +0200 Subject: [PATCH] Remove Lucene.isEmpty(DocIdSet). After the Filter ban, this method is not used anymore. --- .../main/java/org/elasticsearch/common/lucene/Lucene.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java b/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java index 3aaaf9677b8..25c0743b938 100644 --- a/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java +++ b/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java @@ -717,13 +717,6 @@ public class Lucene { } } - /** - * Is it an empty {@link DocIdSet}? - */ - public static boolean isEmpty(@Nullable DocIdSet set) { - return set == null || set == DocIdSet.EMPTY; - } - /** * Given a {@link Scorer}, return a {@link Bits} instance that will match * all documents contained in the set. Note that the returned {@link Bits}