From: xie xingguo Date: Mon, 8 Aug 2016 08:28:32 +0000 (+0800) Subject: osd/osd_types: kill undefined_shard() method of pg_shard_t X-Git-Tag: v11.0.1~410^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c37af24bc2850933ce0972ea44f7c18de1578e7;p=ceph.git osd/osd_types: kill undefined_shard() method of pg_shard_t It is never used by anyone. Signed-off-by: xie xingguo --- diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index c2f49b46a48..7d141b725f9 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -95,9 +95,6 @@ struct pg_shard_t { pg_shard_t() : osd(-1), shard(shard_id_t::NO_SHARD) {} explicit pg_shard_t(int osd) : osd(osd), shard(shard_id_t::NO_SHARD) {} pg_shard_t(int osd, shard_id_t shard) : osd(osd), shard(shard) {} - static pg_shard_t undefined_shard() { - return pg_shard_t(-1, shard_id_t::NO_SHARD); - } bool is_undefined() const { return osd == -1; } @@ -1353,7 +1350,6 @@ public: void set_flag(uint64_t f) { flags |= f; } void unset_flag(uint64_t f) { flags &= ~f; } - /// This method will later return true for ec pools as well bool ec_pool() const { return type == TYPE_ERASURE; }