mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Remove unused Registry#OnUnregistered
This commit is contained in:
parent
a9e9e14fce
commit
e0e82449d8
@ -50,7 +50,6 @@ public:
|
||||
}
|
||||
|
||||
boost::signals2::signal<void (const String&, const T&)> OnRegistered;
|
||||
boost::signals2::signal<void (const String&)> OnUnregistered;
|
||||
|
||||
private:
|
||||
mutable std::mutex m_Mutex;
|
||||
@ -58,18 +57,10 @@ private:
|
||||
|
||||
void RegisterInternal(const String& name, const T& item, std::unique_lock<std::mutex>& lock)
|
||||
{
|
||||
bool old_item = false;
|
||||
|
||||
if (m_Items.erase(name) > 0)
|
||||
old_item = true;
|
||||
|
||||
m_Items[name] = item;
|
||||
|
||||
lock.unlock();
|
||||
|
||||
if (old_item)
|
||||
OnUnregistered(name);
|
||||
|
||||
OnRegistered(name, item);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user