Skip to content
Snippets Groups Projects
Commit cb524cc7 authored by Steven Murray's avatar Steven Murray
Browse files

Deleted unused ConnPool constructor

parent 02efe805
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ namespace rdbms {
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
ConnPool::ConnPool(const Login &login, const uint64_t nbConns):
m_connFactory(rdbms::ConnFactoryFactory::create(login)),
ConnPool::ConnPool(std::unique_ptr<ConnFactory> connFactory, const uint64_t nbConns):
m_connFactory(std::move(connFactory)),
m_nbConns(nbConns) {
try {
createConns(m_nbConns);
......@@ -53,19 +53,6 @@ void ConnPool::createConns(const uint64_t nbConns) {
}
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
ConnPool::ConnPool(std::unique_ptr<ConnFactory> connFactory, const uint64_t nbConns):
m_connFactory(std::move(connFactory)),
m_nbConns(nbConns) {
try {
createConns(m_nbConns);
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
}
}
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
......
......@@ -36,15 +36,6 @@ namespace rdbms {
class ConnPool {
public:
/**
* Constructor.
*
* @param login The database login details to be used to create new
* connections.
* @param nbConns The number of database connections within the pool.
*/
ConnPool(const Login &login, const uint64_t nbConns);
/**
* Constructor.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment