From: Patrick Donnelly Date: Mon, 7 Jul 2025 18:02:05 +0000 (-0400) Subject: common/entity_name: remove dead method X-Git-Tag: testing/wip-pdonnell-testing-20260126.152838~56 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d8a620efe76a9655b43298d72d6abbf7d6f690ca;p=ceph-ci.git common/entity_name: remove dead method Signed-off-by: Patrick Donnelly --- diff --git a/src/common/entity_name.cc b/src/common/entity_name.cc index c6078e6388c..362fc437181 100644 --- a/src/common/entity_name.cc +++ b/src/common/entity_name.cc @@ -128,13 +128,6 @@ void EntityName::set_id(std::string_view id_) { set(type, id_); } -void EntityName::set_name(entity_name_t n) -{ - char s[40]; - sprintf(s, "%lld", (long long)n.num()); - set(n.type(), s); -} - const char* EntityName::get_type_str() const { return ceph_entity_type_name(type); } diff --git a/src/common/entity_name.h b/src/common/entity_name.h index af377c99bc0..079274f5249 100644 --- a/src/common/entity_name.h +++ b/src/common/entity_name.h @@ -53,7 +53,6 @@ struct EntityName void set_type(entity_type_t type_); int set_type(std::string_view type); void set_id(std::string_view id_); - void set_name(entity_name_t n); const char* get_type_str() const;