]> git-server-git.apps.pok.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, 26 Jan 2026 15:27:14 +0000 (10:27 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/common/entity_name.cc
src/common/entity_name.h

index c6078e6388cb0e4e8fda3181e3ad94e8c090723f..362fc43718103dad5196c7b9f562402270de64a3 100644 (file)
@@ -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);
 }
index af377c99bc06822bde19fa6ac2e64d9c44da8102..079274f52493d8967192b0dae07fa07570c0d952 100644 (file)
@@ -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;