MINOR: Remove Deadcode in ExpressionTermSetQuery (#34442)

This commit is contained in:
Armin Braun 2018-10-15 17:26:08 +01:00 committed by GitHub
parent 55eaf7a3ff
commit 511526250b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -221,8 +221,7 @@ public class ExpressionScriptEngine extends AbstractComponent implements ScriptE
throw convertToScriptException("link error", expr.sourceText, variable, e); throw convertToScriptException("link error", expr.sourceText, variable, e);
} }
} }
ReplaceableConstDoubleValueSource specialValue = null; return new ExpressionTermSetQueryScript(expr, bindings);
return new ExpressionTermSetQueryScript(expr, bindings, specialValue);
} }
/** /**

View File

@ -38,13 +38,11 @@ class ExpressionTermSetQueryScript implements TermsSetQueryScript.LeafFactory {
final Expression exprScript; final Expression exprScript;
final SimpleBindings bindings; final SimpleBindings bindings;
final DoubleValuesSource source; final DoubleValuesSource source;
final ReplaceableConstDoubleValueSource specialValue; // _value
ExpressionTermSetQueryScript(Expression e, SimpleBindings b, ReplaceableConstDoubleValueSource v) { ExpressionTermSetQueryScript(Expression e, SimpleBindings b) {
exprScript = e; exprScript = e;
bindings = b; bindings = b;
source = exprScript.getDoubleValuesSource(bindings); source = exprScript.getDoubleValuesSource(bindings);
specialValue = v;
} }
@Override @Override