Remove useless code

This commit is contained in:
Alexey Milovidov 2022-10-02 01:50:03 +02:00
parent bd277348ca
commit 90b9afab21
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