Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
martint committed Mar 9, 2019
1 parent ef823c8 commit c3162e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public PlanWithProperties visitDistinctLimit(DistinctLimitNode node, PreferredPr
public PlanWithProperties visitFilter(FilterNode node, PreferredProperties preferredProperties)
{
if (node.getSource() instanceof TableScanNode) {
return planTableScan((TableScanNode) node.getSource(), node.getPredicate(), preferredProperties);
return planTableScan((TableScanNode) node.getSource(), node.getPredicate());
}

return rebaseAndDeriveProperties(node, planChild(node, preferredProperties));
Expand All @@ -500,7 +500,7 @@ public PlanWithProperties visitFilter(FilterNode node, PreferredProperties prefe
@Override
public PlanWithProperties visitTableScan(TableScanNode node, PreferredProperties preferredProperties)
{
return planTableScan(node, TRUE_LITERAL, preferredProperties);
return planTableScan(node, TRUE_LITERAL);
}

@Override
Expand Down Expand Up @@ -530,7 +530,7 @@ else if (redistributeWrites) {
return rebaseAndDeriveProperties(node, source);
}

private PlanWithProperties planTableScan(TableScanNode node, Expression predicate, PreferredProperties preferredProperties)
private PlanWithProperties planTableScan(TableScanNode node, Expression predicate)
{
PlanNode plan = PickTableLayout.pushFilterIntoTableScan(node, predicate, true, session, types, idAllocator, metadata, parser, domainTranslator);
return new PlanWithProperties(plan, derivePropertiesRecursively(plan));
Expand Down

0 comments on commit c3162e7

Please sign in to comment.