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:27:38 UTC
(solr) branch branch_9x 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 branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new c42eba83afc remove unused local variable in SolrIndexSearcher.sortDocSet (#2281)
c42eba83afc is described below
commit c42eba83afc3176fb70b5c15eb6e6a542e378cd7
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Tue Feb 20 16:23:38 2024 +0000
remove unused local variable in SolrIndexSearcher.sortDocSet (#2281)
(cherry picked from commit 7c2edd75a81a3df807e4de32e248e521283969d2)
---
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 f56cb733965..2c7fe938561 100644
--- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
+++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
@@ -2307,9 +2307,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();