Merge pull request #42004 from ClickHouse/remove-useless-code-3

Remove useless code
This commit is contained in:
Alexey Milovidov 2022-10-02 17:01:06 +03:00 committed by GitHub
commit c5586f7644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 14 deletions

View File

@ -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);

View File

@ -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);

View File

@ -62,8 +62,6 @@ public:
void updateThreadEventData(HostToThreadTimesMap & new_thread_data);
private:
size_t getUsedThreadsCount() const;
double getCPUUsage();
struct MemoryUsage