MINOR: Remove Deadcode in ExpressionTermSetQuery (#34442)
This commit is contained in:
parent
55eaf7a3ff
commit
511526250b
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue