diff --git a/src/Client/ClientBase.h b/src/Client/ClientBase.h index 3a6e623dc3f..3a8fea5c0dc 100644 --- a/src/Client/ClientBase.h +++ b/src/Client/ClientBase.h @@ -147,7 +147,6 @@ private: String prompt() const; void resetOutput(); - void outputQueryInfo(bool echo_query_); void parseAndCheckOptions(OptionsDescription & options_description, po::variables_map & options, Arguments & arguments); void updateSuggest(const ASTPtr & ast); diff --git a/src/Common/ProgressIndication.cpp b/src/Common/ProgressIndication.cpp index ab4ecf5c25f..166e98f3d3c 100644 --- a/src/Common/ProgressIndication.cpp +++ b/src/Common/ProgressIndication.cpp @@ -102,17 +102,6 @@ void ProgressIndication::updateThreadEventData(HostToThreadTimesMap & new_thread cpu_usage_meter.add(getElapsedNanoseconds(), total_cpu_ns); } -size_t ProgressIndication::getUsedThreadsCount() const -{ - std::lock_guard lock(profile_events_mutex); - - return std::accumulate(thread_data.cbegin(), thread_data.cend(), 0, - [] (size_t acc, auto const & threads) - { - return acc + threads.second.size(); - }); -} - double ProgressIndication::getCPUUsage() { std::lock_guard lock(profile_events_mutex); diff --git a/src/Common/ProgressIndication.h b/src/Common/ProgressIndication.h index 4f05f41b9d0..cdbe0b1e0d4 100644 --- a/src/Common/ProgressIndication.h +++ b/src/Common/ProgressIndication.h @@ -62,8 +62,6 @@ public: void updateThreadEventData(HostToThreadTimesMap & new_thread_data); private: - size_t getUsedThreadsCount() const; - double getCPUUsage(); struct MemoryUsage