From: Jan Fajerski Date: Fri, 7 Sep 2018 08:22:19 +0000 (+0200) Subject: mgr: remove PerfCounterInstance::get_current() X-Git-Tag: v14.0.1~218^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90463754ed6295dc55eb55e5acce7fc5b63e5a21;p=ceph-ci.git mgr: remove PerfCounterInstance::get_current() This function was wrong (should return buffer.back().v) and unused. Signed-off-by: Jan Fajerski --- diff --git a/src/mgr/DaemonState.cc b/src/mgr/DaemonState.cc index 1dd314da2d3..8bae839c719 100644 --- a/src/mgr/DaemonState.cc +++ b/src/mgr/DaemonState.cc @@ -289,11 +289,6 @@ void DaemonPerfCounters::update(MMgrReport *report) DECODE_FINISH(p); } -uint64_t PerfCounterInstance::get_current() const -{ - return buffer.front().v; -} - void PerfCounterInstance::push(utime_t t, uint64_t const &v) { buffer.push_back({t, v});