mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Remove unused Registry#RegisterIfNew()
This commit is contained in:
parent
07b274ec45
commit
4d7361527c
@ -23,16 +23,6 @@ class Registry
|
||||
public:
|
||||
typedef std::map<String, T> ItemMap;
|
||||
|
||||
void RegisterIfNew(const String& name, const T& item)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(m_Mutex);
|
||||
|
||||
if (m_Items.find(name) != m_Items.end())
|
||||
return;
|
||||
|
||||
RegisterInternal(name, item, lock);
|
||||
}
|
||||
|
||||
void Register(const String& name, const T& item)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(m_Mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user