From ef8f516ab3b411f2d43b2153562d492fda818180 Mon Sep 17 00:00:00 2001 From: Haonan Chen Date: Mon, 5 Jan 2026 13:56:23 +0800 Subject: [PATCH] packages.biu: remove unused Logger::Exception class --- packages/biu/include/biu/logger.hpp | 9 --------- packages/biu/include/biu/logger.tpp | 7 ------- 2 files changed, 16 deletions(-) diff --git a/packages/biu/include/biu/logger.hpp b/packages/biu/include/biu/logger.hpp index c0d6deca..84f6575c 100644 --- a/packages/biu/include/biu/logger.hpp +++ b/packages/biu/include/biu/logger.hpp @@ -53,15 +53,6 @@ namespace biu // List of objects that is being monitored by ObjectMonitor, {address, type} protected: static Atomic> Objects_; - public: template class Exception : public std::exception - { - protected: const std::string Message_; - protected: const boost::stacktrace::stacktrace Stacktrace_; - - public: explicit Exception(const std::string& message); - public: const char* what() const noexcept final {return Message_.c_str();} - }; - public: template static void try_exec(Function&& function); // Monitor the start and end of a function, as well as corresponding thread. diff --git a/packages/biu/include/biu/logger.tpp b/packages/biu/include/biu/logger.tpp index 7000180f..aa9830f0 100644 --- a/packages/biu/include/biu/logger.tpp +++ b/packages/biu/include/biu/logger.tpp @@ -63,13 +63,6 @@ namespace biu } inline Atomic> Logger::Objects_; - template Logger::Exception::Exception(const std::string& message) - { - Logger::Guard log(message); - log.print_exception - (std::pair(nameof::nameof_full_type(), message), Stacktrace_); - } - template inline void Logger::try_exec(Function&& function) { Logger::Guard log;