[Libreoffice-commits] core.git: connectivity/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 24 21:59:55 UTC 2020


 connectivity/source/drivers/postgresql/pq_baseresultset.cxx     |    2 --
 connectivity/source/drivers/postgresql/pq_connection.cxx        |    1 -
 connectivity/source/drivers/postgresql/pq_connection.hxx        |    6 ------
 connectivity/source/drivers/postgresql/pq_preparedstatement.cxx |    1 -
 connectivity/source/drivers/postgresql/pq_statement.cxx         |    2 --
 5 files changed, 12 deletions(-)

New commits:
commit 254db7f4e8a8648b5dbcf6565b61b003dff634ff
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Mon Feb 24 20:43:33 2020 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Mon Feb 24 22:59:19 2020 +0100

    Postgresql unused POSTGRE_TRACE
    
    there was "#ifdef POSTGRE_TRACE", but it was nowhere to be seen
    except in the following purged files.
    
    Change-Id: Id77aef0869d112cb1a5282d8db79da4bc78a56e5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89378
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Jenkins

diff --git a/connectivity/source/drivers/postgresql/pq_baseresultset.cxx b/connectivity/source/drivers/postgresql/pq_baseresultset.cxx
index bfe59284efe9..8fc7140e4817 100644
--- a/connectivity/source/drivers/postgresql/pq_baseresultset.cxx
+++ b/connectivity/source/drivers/postgresql/pq_baseresultset.cxx
@@ -114,7 +114,6 @@ BaseResultSet::BaseResultSet(
     , m_fieldCount( colCount )
     , m_wasNull(false)
 {
-    POSTGRE_TRACE( "ctor BaseResultSet" );
 }
 
 // LEM TODO: refMutex->GetMutex() should live longer than OComponentHelper,
@@ -122,7 +121,6 @@ BaseResultSet::BaseResultSet(
 // BaseResultSet::~BaseResultSet in an infinite loop :(
 BaseResultSet::~BaseResultSet()
 {
-    POSTGRE_TRACE( "dtor BaseResultSet" );
 }
 
 Any BaseResultSet::queryInterface( const Type & rType )
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index fda7841a9e7c..93f9c5fcf013 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -184,7 +184,6 @@ Connection::Connection(
 
 Connection::~Connection()
 {
-    POSTGRE_TRACE( "dtor connection" );
     if( m_settings.pConnection )
     {
         PQfinish( m_settings.pConnection );
diff --git a/connectivity/source/drivers/postgresql/pq_connection.hxx b/connectivity/source/drivers/postgresql/pq_connection.hxx
index 507e59349146..9b3a9e2bfe57 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.hxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.hxx
@@ -63,12 +63,6 @@
 
 namespace pq_sdbc_driver
 {
-#ifdef POSTGRE_TRACE
-#define POSTGRE_TRACE( x ) printf( "%s\n" , x )
-#else
-#define POSTGRE_TRACE(x) ((void)0)
-#endif
-
 struct ConnectionSettings;
 
 
diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
index 5df56cc8a39c..887f36d4c909 100644
--- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
+++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx
@@ -191,7 +191,6 @@ PreparedStatement::PreparedStatement(
 
 PreparedStatement::~PreparedStatement()
 {
-    POSTGRE_TRACE( "dtor PreparedStatement" );
 }
 
 void PreparedStatement::checkColumnIndex( sal_Int32 parameterIndex )
diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx
index 4a68cd5697dc..43760281a606 100644
--- a/connectivity/source/drivers/postgresql/pq_statement.cxx
+++ b/connectivity/source/drivers/postgresql/pq_statement.cxx
@@ -154,7 +154,6 @@ Statement::Statement( const ::rtl::Reference< comphelper::RefCountedMutex > & re
 
 Statement::~Statement()
 {
-    POSTGRE_TRACE( "dtor Statement" );
 }
 
 void Statement::checkClosed()
@@ -204,7 +203,6 @@ void Statement::close(  )
     if( resultSet.is() )
     {
         resultSet->close();
-        POSTGRE_TRACE( "statement closed" );
     }
 
 }


More information about the Libreoffice-commits mailing list