Skip to content

Apache Lucene open-source search software

SOLR-11603: Remove unused (public) LTRScoringModel.hasParams() method.

Christine Poerschkeb43dcde26704
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index e889594383a..1cf641f9101 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -132,6 +132,8 @@ Other Changes
* SOLR-11380: SolrJ must stream docs to server instead of writing to a buffer first (noble)
+* SOLR-11603: Remove unused (public) LTRScoringModel.hasParams() method. (Christine Poerschke)
+
================== 7.1.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/LTRScoringModel.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/LTRScoringModel.java
index 2b4f575be7e..7eb3436be95 100644
--- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/LTRScoringModel.java
+++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/LTRScoringModel.java
@@ -229,10 +229,6 @@ public abstract class LTRScoringModel {
return true;
}
- public boolean hasParams() {
- return !((params == null) || params.isEmpty());
- }
-
public Collection<Feature> getAllFeatures() {
return allFeatures;
}