]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/Singleton.hxx
Fix #1783: repeated error message on console
[simgear.git] / simgear / structure / Singleton.hxx
index dda5f78ccb96773db6d38932a49a91e353f90f15..0db235fec976aa7646ecf105b58d878fe43ce5c4 100644 (file)
@@ -3,9 +3,6 @@
 
 #include "singleton.hpp"
 
-#include "SGReferenced.hxx"
-#include "SGSharedPtr.hxx"
-
 namespace simgear
 {
 /**
@@ -27,33 +24,5 @@ public:
     }
 };
 
-template <typename RefClass>
-class SingletonRefPtr
-{
-public:
-    SingletonRefPtr()
-    {
-        ptr = new RefClass;
-    }
-    static RefClass* instance()
-    {
-        SingletonRefPtr& singleton
-            = boost::details::pool::singleton_default<SingletonRefPtr>::instance();
-        return singleton.ptr.get();
-    }
-private:
-    SGSharedPtr<RefClass> ptr;
-};
-
-template <typename RefClass>
-class ReferencedSingleton : public virtual SGReferenced
-{
-public:
-    static RefClass* instance()
-    {
-        return SingletonRefPtr<RefClass>::instance();
-    }
-};
-
 }
 #endif