]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/entity_name: remove dead method
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 7 Jul 2025 18:02:05 +0000 (14:02 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 13 Oct 2025 23:59:56 +0000 (19:59 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit f617e49bf36273648da60c45fbeabeb75c024845)

src/common/entity_name.cc
src/common/entity_name.h

index 92c24443306d44f6a47c58b217cd18b8bddab73b..4aa609d1268c1130a29dcebec47a92b1e15e8d96 100644 (file)
@@ -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);
 }
index 9084bc256598f1b5a6f427fd70f22b9b545a3f10..4dd5b4672661156773e585ffafc38d369a315d4e 100644 (file)
@@ -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;