]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
clean up code
authorRazvan Becheriu <razvan@isc.org>
Thu, 24 Oct 2019 16:43:03 +0000 (19:43 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 6 Nov 2019 17:32:51 +0000 (19:32 +0200)
src/lib/mysql/mysql_connection.cc
src/lib/mysql/mysql_connection.h

index a908508e04a4c3fc61e9832ed2a4be83e6ce20d7..a40aafa75a836728d15acd91cb8a7601227fd4ec 100644 (file)
@@ -25,10 +25,6 @@ namespace db {
 
 bool MySqlHolder::atexit_ = []{atexit([]{mysql_library_end();});return true;};
 
-void
-MySqlHolder::doNothing() {
-}
-
 void
 MySqlHolder::setConnection(MYSQL* connection) {
     // clear prepared statements associated to current connection
index da6eeff71fb5de40be73569fe70cda2e5ce6a7d4..118e388fdf724f5c89f6aee2dcf212308d7d8796 100644 (file)
@@ -98,7 +98,6 @@ public:
     /// Sets the MySql API connector handle to NULL.
     /// Push a call to mysql_library_end() at exit time.
     MySqlHolder() : connected_(false), prepared_(false), mysql_(NULL) {
-        doNothing();
     }
 
     /// @brief Destructor