diff --git a/include/ircd/ios.h b/include/ircd/ios.h index feec193b3..37ecd4bee 100644 --- a/include/ircd/ios.h +++ b/include/ircd/ios.h @@ -43,7 +43,6 @@ namespace ircd::ios struct defer; struct post; - extern const std::thread::id static_thread_id; extern std::thread::id main_thread_id; extern asio::io_context *user; @@ -51,7 +50,6 @@ namespace ircd::ios const string_view &name(const handler &); bool is_main_thread(); - bool is_static_thread(); void assert_main_thread(); bool available() noexcept; @@ -291,10 +289,3 @@ ircd::ios::is_main_thread() return std::this_thread::get_id() == main_thread_id || main_thread_id == std::thread::id(); } - -inline bool -__attribute__((always_inline)) -ircd::ios::is_static_thread() -{ - return std::this_thread::get_id() == static_thread_id; -} diff --git a/ircd/ios.cc b/ircd/ios.cc index ebfe75d55..c849b4121 100644 --- a/ircd/ios.cc +++ b/ircd/ios.cc @@ -10,13 +10,6 @@ #include -/// Record of the ID of the thread static initialization took place on. -decltype(ircd::ios::static_thread_id) -ircd::ios::static_thread_id -{ - std::this_thread::get_id() -}; - /// "main" thread for IRCd; the one the main context landed on. decltype(ircd::ios::main_thread_id) ircd::ios::main_thread_id;