From 4c1df5ca4ee2da6eafd203dd414f3aa798f82fa5 Mon Sep 17 00:00:00 2001 From: praveenkrishna Date: Wed, 18 Sep 2019 16:33:45 +0530 Subject: [PATCH] Remove unused variable from ShowQueriesRewrite --- .../java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java b/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java index 9b41d1e048ab..d11f11453747 100644 --- a/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java +++ b/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java @@ -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 @@ -153,15 +153,13 @@ private static class Visitor private final Metadata metadata; private final Session session; private final SqlParser sqlParser; - private final List parameters; private final AccessControl accessControl; - public Visitor(Metadata metadata, SqlParser sqlParser, Session session, List 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"); }