diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 13:13:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-22 14:07:49 +0200 |
commit | 2b4cb88c029cc085e06effb32a2631033ccd8a50 (patch) | |
tree | 26c84dc341b233bb94c90d0fbc01788ed62a0bfa /connectivity | |
parent | 939f9bd0b502ab5dc240be0c6f334becb1c944c8 (diff) |
loplugin:unusedfields in basctl..connectivity
Change-Id: I2f10daadb84e48eaf96f6cc63899b2f4fce7326e
Reviewed-on: https://gerrit.libreoffice.org/40295
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_connection.hxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_databasemetadata.cxx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_connection.hxx b/connectivity/source/drivers/postgresql/pq_connection.hxx index bebabb04be82..c49cc8938454 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.hxx +++ b/connectivity/source/drivers/postgresql/pq_connection.hxx @@ -97,7 +97,6 @@ struct ConnectionSettings maxIndexKeys(0), pTablesImpl(nullptr), pViewsImpl(nullptr), - showSystemColumns( false ), logFile( nullptr ), m_nLogLevel(LogLevel::Info) {} @@ -113,7 +112,6 @@ struct ConnectionSettings Views *pViewsImpl; // needed to implement renaming of tables / views OUString user; OUString catalog; - bool showSystemColumns; FILE *logFile; LogLevel m_nLogLevel; }; diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index 1e0443e651f4..7c440d7eb334 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -1563,7 +1563,7 @@ css::uno::Reference< XResultSet > DatabaseMetaData::getColumns( while( rs->next() ) { - if( m_pSettings->showSystemColumns || ! isSystemColumn( xRow->getShort( 12 ) ) ) + if( ! isSystemColumn( xRow->getShort( 12 ) ) ) { OUString sNewSchema( xRow->getString(1) ); OUString sNewTable( xRow->getString(2) ); |