| 73 | } |
| 74 | |
| 75 | void ODBCEnvironment::DropConnection(ODBCConnection* conn) { |
| 76 | auto it = std::find_if(connections_.begin(), connections_.end(), |
| 77 | [&conn](const std::shared_ptr<ODBCConnection>& connection) { |
| 78 | return connection.get() == conn; |
| 79 | }); |
| 80 | if (connections_.end() != it) { |
| 81 | connections_.erase(it); |
| 82 | } |
| 83 | } |
no test coverage detected