From 83bea8349e5c2a31a347d85091abbfaec0ce3f19 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Wed, 29 Mar 2017 08:48:26 -0400 Subject: [PATCH] remove dead code --- lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java | 1 - 1 file changed, 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java index 5ab16c248d3..c5d9ddcf887 100644 --- a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java +++ b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java @@ -414,7 +414,6 @@ public class IndexSearcher { throw new IllegalArgumentException("after.doc exceeds the number of documents in the reader: after.doc=" + after.doc + " limit=" + limit); } - numHits = Math.min(numHits, limit); final int cappedNumHits = Math.min(numHits, limit);