You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2024/02/20 16:23:43 UTC

(solr) branch main updated: remove unused local variable in SolrIndexSearcher.sortDocSet (#2281)

This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c2edd75a81 remove unused local variable in SolrIndexSearcher.sortDocSet (#2281)
7c2edd75a81 is described below

commit 7c2edd75a81a3df807e4de32e248e521283969d2
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Tue Feb 20 16:23:38 2024 +0000

    remove unused local variable in SolrIndexSearcher.sortDocSet (#2281)
---
 solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
index 948658188c8..d2c42adbc12 100644
--- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
+++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
@@ -2253,9 +2253,6 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable, SolrI
       return;
     }
 
-    // bit of a hack to tell if a set is sorted - do it better in the future.
-    boolean inOrder = set instanceof BitDocSet || set instanceof SortedIntDocSet;
-
     TopDocsCollector<? extends ScoreDoc> topCollector = buildTopDocsCollector(nDocs, cmd);
 
     DocIterator iter = set.iterator();