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