Skip to content

Commit

Permalink
Remove unused variable from ShowQueriesRewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen2112 authored and martint committed Sep 24, 2019
1 parent 767e1f4 commit 4c1df5c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public Statement rewrite(
AccessControl accessControl,
WarningCollector warningCollector)
{
return (Statement) new Visitor(metadata, parser, session, parameters, accessControl).process(node, null);
return (Statement) new Visitor(metadata, parser, session, accessControl).process(node, null);
}

private static class Visitor
Expand All @@ -153,15 +153,13 @@ private static class Visitor
private final Metadata metadata;
private final Session session;
private final SqlParser sqlParser;
private final List<Expression> parameters;
private final AccessControl accessControl;

public Visitor(Metadata metadata, SqlParser sqlParser, Session session, List<Expression> parameters, AccessControl accessControl)
public Visitor(Metadata metadata, SqlParser sqlParser, Session session, AccessControl accessControl)
{
this.metadata = requireNonNull(metadata, "metadata is null");
this.sqlParser = requireNonNull(sqlParser, "sqlParser is null");
this.session = requireNonNull(session, "session is null");
this.parameters = requireNonNull(parameters, "parameters is null");
this.accessControl = requireNonNull(accessControl, "accessControl is null");
}

Expand Down

0 comments on commit 4c1df5c

Please sign in to comment.