mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 00:24:23 +02:00
Remove unused Registry#RegisterIfNew()
This commit is contained in:
parent
07b274ec45
commit
4d7361527c
@ -23,16 +23,6 @@ class Registry
|
|||||||
public:
|
public:
|
||||||
typedef std::map<String, T> ItemMap;
|
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)
|
void Register(const String& name, const T& item)
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(m_Mutex);
|
std::unique_lock<std::mutex> lock(m_Mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user