Skip to content

Commit

Permalink
MINOR: Remove Deadcode in ExpressionTermSetQuery (#34442)
Browse files Browse the repository at this point in the history
  • Loading branch information
original-brownbear authored Oct 15, 2018
1 parent 55eaf7a commit 5115262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ private TermsSetQueryScript.LeafFactory newTermsSetQueryScript(Expression expr,
throw convertToScriptException("link error", expr.sourceText, variable, e);
}
}
ReplaceableConstDoubleValueSource specialValue = null;
return new ExpressionTermSetQueryScript(expr, bindings, specialValue);
return new ExpressionTermSetQueryScript(expr, bindings);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ class ExpressionTermSetQueryScript implements TermsSetQueryScript.LeafFactory {
final Expression exprScript;
final SimpleBindings bindings;
final DoubleValuesSource source;
final ReplaceableConstDoubleValueSource specialValue; // _value

ExpressionTermSetQueryScript(Expression e, SimpleBindings b, ReplaceableConstDoubleValueSource v) {
ExpressionTermSetQueryScript(Expression e, SimpleBindings b) {
exprScript = e;
bindings = b;
source = exprScript.getDoubleValuesSource(bindings);
specialValue = v;
}

@Override
Expand Down

0 comments on commit 5115262

Please sign in to comment.