mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Remove deprecated createOnDemandOnce SingletonLifetime option
This commit is contained in:
@@ -93,12 +93,6 @@ protected:
|
|||||||
{
|
{
|
||||||
incReferenceCount ();
|
incReferenceCount ();
|
||||||
}
|
}
|
||||||
else if (m_lifetime == createOnDemandOnce && *s_created)
|
|
||||||
{
|
|
||||||
Throw (Error ().fail (__FILE__, __LINE__));
|
|
||||||
}
|
|
||||||
|
|
||||||
*s_created = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~SharedSingleton ()
|
virtual ~SharedSingleton ()
|
||||||
@@ -194,7 +188,6 @@ private:
|
|||||||
private:
|
private:
|
||||||
static Object* s_instance;
|
static Object* s_instance;
|
||||||
static Static::Storage <LockType, SharedSingleton <Object> > s_mutex;
|
static Static::Storage <LockType, SharedSingleton <Object> > s_mutex;
|
||||||
static Static::Storage <bool, SharedSingleton <Object> > s_created;
|
|
||||||
};
|
};
|
||||||
/** @{ */
|
/** @{ */
|
||||||
|
|
||||||
@@ -205,8 +198,4 @@ template <class Object>
|
|||||||
Static::Storage <typename SharedSingleton <Object>::LockType, SharedSingleton <Object> >
|
Static::Storage <typename SharedSingleton <Object>::LockType, SharedSingleton <Object> >
|
||||||
SharedSingleton <Object>::s_mutex;
|
SharedSingleton <Object>::s_mutex;
|
||||||
|
|
||||||
template <class Object>
|
|
||||||
Static::Storage <bool, SharedSingleton <Object> >
|
|
||||||
SharedSingleton <Object>::s_created;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user