Remove useless code

This commit is contained in:
Alexey Milovidov 2022-04-17 22:02:55 +02:00
parent 6807f8428d
commit 1f5df287c0

View File

@ -32,18 +32,11 @@ void AsynchronousMetricLogElement::appendToBlock(MutableColumns & columns) const
columns[column_idx++]->insert(value);
}
static inline UInt64 time_in_seconds(std::chrono::time_point<std::chrono::system_clock> timepoint)
{
return std::chrono::duration_cast<std::chrono::seconds>(timepoint.time_since_epoch()).count();
}
void AsynchronousMetricLog::addValues(const AsynchronousMetricValues & values)
{
AsynchronousMetricLogElement element;
const auto now = std::chrono::system_clock::now();
element.event_time = time_in_seconds(now);
element.event_time = time(nullptr);
element.event_date = DateLUT::instance().toDayNum(element.event_time);
for (const auto & [key, value] : values)