Skip to content

Commit 3da6f99

Browse files
Remove a superfluous function that forwards the call to mysql_close().
1 parent 4ffd11b commit 3da6f99

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/sqlpp11/mysql/detail/connection_handle.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,14 @@ namespace sqlpp
6565
}
6666
}
6767

68-
inline void handle_cleanup(MYSQL* mysql)
69-
{
70-
mysql_close(mysql);
71-
}
72-
7368
struct connection_handle
7469
{
7570
std::shared_ptr<const connection_config> config;
7671
std::unique_ptr<MYSQL, void (*)(MYSQL*)> mysql;
7772

7873
connection_handle(const std::shared_ptr<const connection_config>& conf) :
7974
config(conf),
80-
mysql(mysql_init(nullptr), handle_cleanup)
75+
mysql{mysql_init(nullptr), mysql_close}
8176
{
8277
if (not mysql)
8378
{

0 commit comments

Comments
 (0)