Skip to content

Commit 025550a

Browse files
original-brownbearkcm
authored andcommitted
MINOR: Remove Deadcode in ExpressionTermSetQuery (#34442)
1 parent bef8781 commit 025550a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionScriptEngine.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ private TermsSetQueryScript.LeafFactory newTermsSetQueryScript(Expression expr,
221221
throw convertToScriptException("link error", expr.sourceText, variable, e);
222222
}
223223
}
224-
ReplaceableConstDoubleValueSource specialValue = null;
225-
return new ExpressionTermSetQueryScript(expr, bindings, specialValue);
224+
return new ExpressionTermSetQueryScript(expr, bindings);
226225
}
227226

228227
/**

modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionTermSetQueryScript.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ class ExpressionTermSetQueryScript implements TermsSetQueryScript.LeafFactory {
3838
final Expression exprScript;
3939
final SimpleBindings bindings;
4040
final DoubleValuesSource source;
41-
final ReplaceableConstDoubleValueSource specialValue; // _value
4241

43-
ExpressionTermSetQueryScript(Expression e, SimpleBindings b, ReplaceableConstDoubleValueSource v) {
42+
ExpressionTermSetQueryScript(Expression e, SimpleBindings b) {
4443
exprScript = e;
4544
bindings = b;
4645
source = exprScript.getDoubleValuesSource(bindings);
47-
specialValue = v;
4846
}
4947

5048
@Override

0 commit comments

Comments
 (0)