]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#888,!573] clean up code
authorRazvan Becheriu <razvan@isc.org>
Tue, 29 Oct 2019 11:12:59 +0000 (13:12 +0200)
committerRazvan Becheriu <razvan@isc.org>
Wed, 6 Nov 2019 17:28:24 +0000 (19:28 +0200)
src/lib/pgsql/pgsql_connection.cc
src/lib/pgsql/pgsql_connection.h

index 7ce1f7e537651de31dfe188095171d5a957ef407..38318843f98019f2d990789a35b27c0e8e2320e9 100644 (file)
@@ -93,7 +93,7 @@ PgSqlHolder::prepareStatements(PgSqlConnection& connection) {
     if (prepared_) {
         return;
     }
-    // clear previous prepared statements
+    // clear previously prepared statements
     clearPrepared();
     // Prepare all statements queries with all known fields datatype
     for (auto it = connection.statements_.begin();
index bb60c93e57c31922f66c6355588122bb08021367..1ff452a206f77ddf3a5cbda1ea03845099d7118e 100644 (file)
@@ -428,7 +428,6 @@ public:
     /// and from PgSqlHostDataSource.
     PgSqlHolder& handle() const {
         auto result = handles_.resource();
-        // thread_local std::shared_ptr<PgSqlHolder> result(std::make_shared<PgSqlHolder>());
         if (connected_) {
             result->openDatabase(*(const_cast<PgSqlConnection*>(this)));
         }