diff --git a/modules/beast_core/memory/beast_SharedSingleton.h b/modules/beast_core/memory/beast_SharedSingleton.h index 093976a757..8e8b146113 100644 --- a/modules/beast_core/memory/beast_SharedSingleton.h +++ b/modules/beast_core/memory/beast_SharedSingleton.h @@ -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 > s_mutex; - static Static::Storage > s_created; }; /** @{ */ @@ -205,8 +198,4 @@ template Static::Storage ::LockType, SharedSingleton > SharedSingleton ::s_mutex; -template -Static::Storage > -SharedSingleton ::s_created; - #endif