Remove redundant Worker method

The Worker::get_local_statistics was a duplicate of Worker::statistics.
This commit is contained in:
Markus Mäkelä
2018-09-02 01:42:12 +03:00
parent 1e7d088aed
commit 94a567f4ca
2 changed files with 1 additions and 11 deletions

View File

@ -604,16 +604,6 @@ public:
return m_statistics;
}
/**
* Return this worker's statistics.
*
* @return Local statistics for this worker.
*/
const STATISTICS& get_local_statistics() const
{
return m_statistics;
}
/**
* Return the count of descriptors.
*

View File

@ -1086,7 +1086,7 @@ public:
RoutingWorker& rworker = static_cast<RoutingWorker&>(worker);
json_t* pStats = json_object();
const Worker::STATISTICS& s = rworker.get_local_statistics();
const Worker::STATISTICS& s = rworker.statistics();
json_object_set_new(pStats, "reads", json_integer(s.n_read));
json_object_set_new(pStats, "writes", json_integer(s.n_write));
json_object_set_new(pStats, "errors", json_integer(s.n_error));