From 181098e0c0410e8630f5d481fd3fec9925aa7e08 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Fri, 29 Aug 2025 14:51:54 +0200 Subject: [PATCH] refactor(categorizer): remove unused code --- include/dwarfs/writer/categorizer.h | 8 -------- src/writer/categorizer.cpp | 20 -------------------- 2 files changed, 28 deletions(-) diff --git a/include/dwarfs/writer/categorizer.h b/include/dwarfs/writer/categorizer.h index 4a55ece5..d9651898 100644 --- a/include/dwarfs/writer/categorizer.h +++ b/include/dwarfs/writer/categorizer.h @@ -202,16 +202,8 @@ class categorizer_manager : public category_resolver { std::string category_prefix(std::shared_ptr const& mgr, fragment_category cat); -std::string category_prefix(std::unique_ptr const& mgr, - fragment_category cat); std::string category_prefix(categorizer_manager const* mgr, fragment_category cat); -std::string category_prefix(std::shared_ptr const& mgr, - fragment_category::value_type cat); -std::string category_prefix(std::unique_ptr const& mgr, - fragment_category::value_type cat); -std::string category_prefix(categorizer_manager const* mgr, - fragment_category::value_type cat); class categorizer_info { public: diff --git a/src/writer/categorizer.cpp b/src/writer/categorizer.cpp index 6b787390..7c955574 100644 --- a/src/writer/categorizer.cpp +++ b/src/writer/categorizer.cpp @@ -327,26 +327,6 @@ std::string category_prefix(std::shared_ptr const& mgr, return category_prefix(mgr.get(), cat); } -std::string category_prefix(std::unique_ptr const& mgr, - fragment_category cat) { - return category_prefix(mgr.get(), cat); -} - -std::string category_prefix(std::shared_ptr const& mgr, - fragment_category::value_type cat) { - return category_prefix(mgr.get(), cat); -} - -std::string category_prefix(std::unique_ptr const& mgr, - fragment_category::value_type cat) { - return category_prefix(mgr.get(), cat); -} - -std::string category_prefix(categorizer_manager const* mgr, - fragment_category::value_type cat) { - return category_prefix(mgr, fragment_category(cat)); -} - std::string category_prefix(categorizer_manager const* mgr, fragment_category cat) { std::string prefix;