From: Greg Farnum Date: Tue, 9 May 2017 18:12:29 +0000 (-0700) Subject: mon: pgstat: remove unneeded StatIter functions X-Git-Tag: ses5-milestone6~8^2~19^2~108 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e0cbdf3f86651e2e9d665d536ceeae0a28798ae;p=ceph.git mon: pgstat: remove unneeded StatIter functions Signed-off-by: Greg Farnum --- 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()) {