From: Kefu Chai Date: Fri, 5 Jan 2018 15:51:02 +0000 (+0800) Subject: common/perf_counters: remove unused parameter X-Git-Tag: v13.0.2~569^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58fe27ebc2dae7a368458f2a8f0c2d2991037ba3;p=ceph.git common/perf_counters: remove unused parameter Signed-off-by: Kefu Chai --- diff --git a/src/common/perf_counters.cc b/src/common/perf_counters.cc index 048c93a64334..737bbcc3dc85 100644 --- a/src/common/perf_counters.cc +++ b/src/common/perf_counters.cc @@ -230,7 +230,7 @@ uint64_t PerfCounters::get(int idx) const return data.u64; } -void PerfCounters::tinc(int idx, utime_t amt, uint32_t avgcount) +void PerfCounters::tinc(int idx, utime_t amt) { if (!m_cct->_conf->perf) return; @@ -249,7 +249,7 @@ void PerfCounters::tinc(int idx, utime_t amt, uint32_t avgcount) } } -void PerfCounters::tinc(int idx, ceph::timespan amt, uint32_t avgcount) +void PerfCounters::tinc(int idx, ceph::timespan amt) { if (!m_cct->_conf->perf) return; diff --git a/src/common/perf_counters.h b/src/common/perf_counters.h index 7192d1895c85..1aec9cc05f58 100644 --- a/src/common/perf_counters.h +++ b/src/common/perf_counters.h @@ -226,8 +226,8 @@ public: uint64_t get(int idx) const; void tset(int idx, utime_t v); - void tinc(int idx, utime_t v, uint32_t avgcount = 1); - void tinc(int idx, ceph::timespan v, uint32_t avgcount = 1); + void tinc(int idx, utime_t v); + void tinc(int idx, ceph::timespan v); utime_t tget(int idx) const; void hinc(int idx, int64_t x, int64_t y);