]> 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>
Wed, 1 Oct 2025 18:47:10 +0000 (14:47 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/common/entity_name.cc
src/common/entity_name.h

index 0dbdf4517926eccbefd88adc35300858f5d2275a..ca0d72a9af7a820c68f28bfa9cd453e99e408410 100644 (file)
@@ -127,13 +127,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 2232a0162e10bacf372ac9846957a2d32e5e2cb6..12017f23d4348a3e5add28cbb39270119113b4d7 100644 (file)
@@ -52,7 +52,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;