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

Removed deadwood method ConnPool::createConns()

parent 9f2236bb
No related branches found
No related tags found
No related merge requests found
......@@ -36,22 +36,6 @@ ConnPool::ConnPool(const Login &login, const uint64_t maxNbConns):
m_nbConnsOnLoan(0){
}
//------------------------------------------------------------------------------
// createConns
//------------------------------------------------------------------------------
void ConnPool::createConns(const uint64_t nbConns) {
try {
for(uint64_t i = 0; i < nbConns; i++) {
auto connAndStmts = cta::make_unique<ConnAndStmts>();
connAndStmts->conn = m_connFactory->create();
connAndStmts->stmtPool = cta::make_unique<StmtPool>();
m_connsAndStmts.push_back(std::move(connAndStmts));
}
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
}
}
//------------------------------------------------------------------------------
// getConn
//------------------------------------------------------------------------------
......
......@@ -111,14 +111,6 @@ private:
* The database connections within the pool.
*/
std::list<std::unique_ptr<ConnAndStmts> > m_connsAndStmts;
/**
* Creates the specified number of database connections with the pool.
*
* @param nbConns The number of database connections to be created.
*/
void createConns(const uint64_t nbConns);
}; // class ConnPool
} // namespace rdbms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment