mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-15 11:10:15 +02:00
Remove unused Registry#Unregister()
This commit is contained in:
parent
402a6bbf40
commit
07b274ec45
@ -40,19 +40,6 @@ public:
|
|||||||
RegisterInternal(name, item, lock);
|
RegisterInternal(name, item, lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unregister(const String& name)
|
|
||||||
{
|
|
||||||
size_t erased;
|
|
||||||
|
|
||||||
{
|
|
||||||
std::unique_lock<std::mutex> lock(m_Mutex);
|
|
||||||
erased = m_Items.erase(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (erased > 0)
|
|
||||||
OnUnregistered(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Clear()
|
void Clear()
|
||||||
{
|
{
|
||||||
typename Registry<U, T>::ItemMap items;
|
typename Registry<U, T>::ItemMap items;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user