From 5e0cbdf3f86651e2e9d665d536ceeae0a28798ae Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 9 May 2017 11:12:29 -0700 Subject: [PATCH] mon: pgstat: remove unneeded StatIter functions Signed-off-by: Greg Farnum --- src/mon/PGStatService.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/mon/PGStatService.h b/src/mon/PGStatService.h index 574b7846ebe..b0e7ac8d469 100644 --- a/src/mon/PGStatService.h +++ b/src/mon/PGStatService.h @@ -38,12 +38,6 @@ public: virtual const pool_stat_t& get_pg_sum() const = 0; virtual const osd_stat_t& get_osd_sum() const = 0; - typedef ceph::unordered_map::const_iterator PGStatIter; - typedef ceph::unordered_map::const_iterator OSDStatIter; - virtual PGStatIter pg_stat_iter_begin() const = 0; - virtual PGStatIter pg_stat_iter_end() const = 0; - virtual OSDStatIter osd_stat_iter_begin() const = 0; - virtual OSDStatIter osd_stat_iter_end() const = 0; virtual const osd_stat_t *get_osd_stat(int osd) const = 0; virtual const ceph::unordered_map *get_osd_stat() const = 0; virtual const ceph::unordered_map *get_pg_stat() const = 0; @@ -113,10 +107,6 @@ public: const pool_stat_t& get_pg_sum() const { return parent.pg_sum; } const osd_stat_t& get_osd_sum() const { return parent.osd_sum; } - PGStatIter pg_stat_iter_begin() const { return parent.pg_stat.begin(); } - PGStatIter pg_stat_iter_end() const { return parent.pg_stat.end(); } - OSDStatIter osd_stat_iter_begin() const { return parent.osd_stat.begin(); } - OSDStatIter osd_stat_iter_end() const { return parent.osd_stat.end(); } const osd_stat_t *get_osd_stat(int osd) const { auto i = parent.osd_stat.find(osd); if (i == parent.osd_stat.end()) { -- 2.47.3