From: Patrick Donnelly Date: Mon, 7 Jul 2025 18:02:05 +0000 (-0400) Subject: common/entity_name: remove dead method X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=61b338b3ed07e36d8fc10f44c2c53e4034b385df;p=ceph-ci.git common/entity_name: remove dead method Signed-off-by: Patrick Donnelly (cherry picked from commit f617e49bf36273648da60c45fbeabeb75c024845) --- diff --git a/src/common/entity_name.cc b/src/common/entity_name.cc index 92c24443306..4aa609d1268 100644 --- a/src/common/entity_name.cc +++ b/src/common/entity_name.cc @@ -125,13 +125,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 9084bc25659..4dd5b467266 100644 --- a/src/common/entity_name.h +++ b/src/common/entity_name.h @@ -46,7 +46,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;