From 9a0d1ce572b4e079561ea89b2653b58b1e7bd0ab Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 8 Nov 2024 11:43:31 +0100 Subject: [PATCH] Remove unused Registry#Clear() --- lib/base/registry.hpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/base/registry.hpp b/lib/base/registry.hpp index 8742597644..5a8ac26f75 100644 --- a/lib/base/registry.hpp +++ b/lib/base/registry.hpp @@ -30,25 +30,6 @@ class Registry RegisterInternal(name, item, lock); } - void Clear() - { - typename Registry::ItemMap items; - - { - std::unique_lock lock(m_Mutex); - items = m_Items; - } - - for (const auto& kv : items) { - OnUnregistered(kv.first); - } - - { - std::unique_lock lock(m_Mutex); - m_Items.clear(); - } - } - T GetItem(const String& name) const { std::unique_lock lock(m_Mutex);