aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/main
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-06-07 16:56:05 +0200
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:32 +0200
commitfca656be2cd0a3fdaa5ed452901fd3f4e8bd562a (patch)
tree739c0d22b2be2d292e57a20632cf057c22383b55 /searchlib/src/main
parent24df131cfc4a3723b5426ccafe6b86b33e36663f (diff)
GC deprecated unused methods
Diffstat (limited to 'searchlib/src/main')
-rwxr-xr-xsearchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ConstantNode.java19
1 files changed, 3 insertions, 16 deletions
diff --git a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ConstantNode.java b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ConstantNode.java
index a305c9c76af..453a7434469 100755
--- a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ConstantNode.java
+++ b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ConstantNode.java
@@ -2,7 +2,6 @@
package com.yahoo.searchlib.rankingexpression.rule;
import com.yahoo.searchlib.rankingexpression.Reference;
-import com.yahoo.searchlib.rankingexpression.evaluation.BooleanValue;
import com.yahoo.searchlib.rankingexpression.evaluation.Context;
import com.yahoo.searchlib.rankingexpression.evaluation.Value;
import com.yahoo.tensor.TensorType;
@@ -20,20 +19,14 @@ public final class ConstantNode extends ExpressionNode {
private final Value value;
- public ConstantNode(Value value) {
- value.freeze();
- this.value = value;
- }
-
/**
* Creates a constant value
*
* @param value the value. Ownership of this value is transferred to this.
- * @param sourceImage the source string image producing this value
*/
- @Deprecated
- public ConstantNode(Value value, String sourceImage) {
- this(value);
+ public ConstantNode(Value value) {
+ value.freeze();
+ this.value = value;
}
public Value getValue() { return value; }
@@ -43,12 +36,6 @@ public final class ConstantNode extends ExpressionNode {
return string.append(value.toString());
}
- /** Returns the string which created this, or the value.toString() if not known */
- @Deprecated
- public String sourceString() {
- return value.toString();
- }
-
@Override
public TensorType type(TypeContext<Reference> context) { return value.type(); }