cleanup unused code
This commit is contained in:
parent
2ee6c9aca1
commit
1baeb7036c
1 changed files with 0 additions and 23 deletions
|
@ -33,10 +33,6 @@
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/make_shared.hpp>
|
#include <boost/make_shared.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#ifdef MAPNIK_THREADSAFE
|
|
||||||
#include <boost/thread/mutex.hpp>
|
|
||||||
//using boost::mutex;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -115,9 +111,6 @@ public:
|
||||||
|
|
||||||
bool registerPool(const ConnectionCreator<Connection>& creator,unsigned initialSize,unsigned maxSize)
|
bool registerPool(const ConnectionCreator<Connection>& creator,unsigned initialSize,unsigned maxSize)
|
||||||
{
|
{
|
||||||
#ifdef MAPNIK_THREADSAFE
|
|
||||||
//mutex::scoped_lock lock(mutex_);
|
|
||||||
#endif
|
|
||||||
ContType::const_iterator itr = pools_.find(creator.id());
|
ContType::const_iterator itr = pools_.find(creator.id());
|
||||||
|
|
||||||
if (itr != pools_.end())
|
if (itr != pools_.end())
|
||||||
|
@ -137,9 +130,6 @@ public:
|
||||||
|
|
||||||
boost::shared_ptr<PoolType> getPool(std::string const& key)
|
boost::shared_ptr<PoolType> getPool(std::string const& key)
|
||||||
{
|
{
|
||||||
#ifdef MAPNIK_THREADSAFE
|
|
||||||
//mutex::scoped_lock lock(mutex_);
|
|
||||||
#endif
|
|
||||||
ContType::const_iterator itr=pools_.find(key);
|
ContType::const_iterator itr=pools_.find(key);
|
||||||
if (itr!=pools_.end())
|
if (itr!=pools_.end())
|
||||||
{
|
{
|
||||||
|
@ -149,19 +139,6 @@ public:
|
||||||
return emptyPool;
|
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<PoolType> pool=itr->second;
|
|
||||||
return pool->borrowObject();
|
|
||||||
}
|
|
||||||
return HolderType();
|
|
||||||
}
|
|
||||||
ConnectionManager() {}
|
ConnectionManager() {}
|
||||||
private:
|
private:
|
||||||
ConnectionManager(const ConnectionManager&);
|
ConnectionManager(const ConnectionManager&);
|
||||||
|
|
Loading…
Add table
Reference in a new issue