diff --git a/plugins/input/postgis/connection_manager.hpp b/plugins/input/postgis/connection_manager.hpp index 7c0521bca..4fbcce2d6 100644 --- a/plugins/input/postgis/connection_manager.hpp +++ b/plugins/input/postgis/connection_manager.hpp @@ -33,10 +33,6 @@ #include #include #include -#ifdef MAPNIK_THREADSAFE -#include -//using boost::mutex; -#endif // stl #include @@ -115,9 +111,6 @@ public: bool registerPool(const ConnectionCreator& creator,unsigned initialSize,unsigned maxSize) { -#ifdef MAPNIK_THREADSAFE - //mutex::scoped_lock lock(mutex_); -#endif ContType::const_iterator itr = pools_.find(creator.id()); if (itr != pools_.end()) @@ -137,9 +130,6 @@ public: boost::shared_ptr getPool(std::string const& key) { -#ifdef MAPNIK_THREADSAFE - //mutex::scoped_lock lock(mutex_); -#endif ContType::const_iterator itr=pools_.find(key); if (itr!=pools_.end()) { @@ -149,19 +139,6 @@ public: return emptyPool; } - HolderType get(std::string const& key) - { -#ifdef MAPNIK_THREADSAFE - //mutex::scoped_lock lock(mutex_); -#endif - ContType::const_iterator itr=pools_.find(key); - if (itr!=pools_.end()) - { - boost::shared_ptr pool=itr->second; - return pool->borrowObject(); - } - return HolderType(); - } ConnectionManager() {} private: ConnectionManager(const ConnectionManager&);