From 7fe1d8effa81dc93bae618b4a5b98b1e2ef046ae Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 15 Oct 2011 22:52:53 +0000 Subject: [PATCH] LUCENE-3510: cleanup now that we support unlimited prohibited clauses git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1183756 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/search/BooleanQuery.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/lucene/src/java/org/apache/lucene/search/BooleanQuery.java b/lucene/src/java/org/apache/lucene/search/BooleanQuery.java index d9dce63536a..aa780902a58 100644 --- a/lucene/src/java/org/apache/lucene/search/BooleanQuery.java +++ b/lucene/src/java/org/apache/lucene/search/BooleanQuery.java @@ -366,12 +366,9 @@ public class BooleanQuery extends Query implements Iterable { @Override public boolean scoresDocsOutOfOrder() { - int numProhibited = 0; for (BooleanClause c : clauses) { if (c.isRequired()) { return false; // BS2 (in-order) will be used by scorer() - } else if (c.isProhibited()) { - ++numProhibited; } }