From 540e1004ca857045e2e886f6ced5bc6edbb913e4 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 8 May 2020 19:38:05 +0300 Subject: [PATCH] Remove useless code. --- src/DataStreams/PushingToViewsBlockOutputStream.cpp | 3 ++- src/Interpreters/Context.cpp | 6 ------ src/Interpreters/Context.h | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/DataStreams/PushingToViewsBlockOutputStream.cpp b/src/DataStreams/PushingToViewsBlockOutputStream.cpp index f6fd978fde..a79cc61bd2 100644 --- a/src/DataStreams/PushingToViewsBlockOutputStream.cpp +++ b/src/DataStreams/PushingToViewsBlockOutputStream.cpp @@ -67,7 +67,8 @@ PushingToViewsBlockOutputStream::PushingToViewsBlockOutputStream( insert->table_id = inner_table_id; /// Get list of columns we get from select query. - auto header = InterpreterSelectQuery(query, *views_context, SelectQueryOptions().analyze()).getSampleBlock(); + auto header = InterpreterSelectQuery(query, *views_context, SelectQueryOptions().analyze()) + .getSampleBlock(); /// Insert only columns returned by select. auto list = std::make_shared(); diff --git a/src/Interpreters/Context.cpp b/src/Interpreters/Context.cpp index 912fdeb4fb..f5651a1ab7 100644 --- a/src/Interpreters/Context.cpp +++ b/src/Interpreters/Context.cpp @@ -885,12 +885,6 @@ bool Context::hasScalar(const String & name) const } -void Context::dropScalars() -{ - scalars.clear(); -} - - StoragePtr Context::executeTableFunction(const ASTPtr & table_expression) { /// Slightly suboptimal. diff --git a/src/Interpreters/Context.h b/src/Interpreters/Context.h index d2448e7844..0d2b3cdb5a 100644 --- a/src/Interpreters/Context.h +++ b/src/Interpreters/Context.h @@ -330,7 +330,6 @@ public: const Block & getScalar(const String & name) const; void addScalar(const String & name, const Block & block); bool hasScalar(const String & name) const; - void dropScalars(); StoragePtr executeTableFunction(const ASTPtr & table_expression); -- GitLab