From 92a551b96e625257def26771155ebd64c6d8757e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Jun 2014 00:06:23 +0000 Subject: fixed not working singletons - still not threadsafe but at least they don't pretend to be --- src/routingTable.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/routingTable.h') diff --git a/src/routingTable.h b/src/routingTable.h index c7e68e4..3171930 100644 --- a/src/routingTable.h +++ b/src/routingTable.h @@ -63,17 +63,6 @@ public: RoutingMap::iterator getEndUnlocked(network_address_type_t type); private: - static Mutex instMutex; - static RoutingTable* inst; - class instanceCleaner - { - public: - ~instanceCleaner() { - if(RoutingTable::inst != 0) { - delete RoutingTable::inst; - } - } - }; RoutingTable(const RoutingTable& s); void operator=(const RoutingTable& s); boost::array routes_; -- cgit v1.2.3