diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-22 11:38:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 08:59:20 +0200 |
commit | cb37c5f0f3de7b545231a53d46a5271058af76ad (patch) | |
tree | 8281f1ceb0363276f29526d9307ba2647679e54c /mysqlc/source | |
parent | 0f347c04bf1305c634b761f92ff487e831bc564c (diff) |
loplugin:unusedfields in jvmfwk..mysqlc
Change-Id: If9c7a3239fceba9a2db3a5905ccaa7fa9adadb08
Reviewed-on: https://gerrit.libreoffice.org/39099
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'mysqlc/source')
-rw-r--r-- | mysqlc/source/mysqlc_connection.cxx | 2 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_connection.hxx | 2 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_databasemetadata.cxx | 4 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_databasemetadata.hxx | 1 |
4 files changed, 0 insertions, 9 deletions
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index 8725f67bb08d..42dbe1a65af3 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -67,7 +67,6 @@ OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver) ,m_xMetaData(nullptr) ,m_rDriver(_rDriver) ,cppDriver(_cppDriver) - ,m_bClosed(false) { m_rDriver.acquire(); } @@ -507,7 +506,6 @@ void OConnection::disposing() } m_aStatements.clear(); - m_bClosed = true; m_xMetaData = WeakReference< XDatabaseMetaData >(); dispose_ChildImpl(); diff --git a/mysqlc/source/mysqlc_connection.hxx b/mysqlc/source/mysqlc_connection.hxx index 0afae7d4ae64..82887251d340 100644 --- a/mysqlc/source/mysqlc_connection.hxx +++ b/mysqlc/source/mysqlc_connection.hxx @@ -108,8 +108,6 @@ namespace connectivity MysqlCDriver& m_rDriver; // Pointer to the owning driver object sql::Driver* cppDriver; - bool m_bClosed; - public: /// @throws SQLException /// @throws RuntimeException diff --git a/mysqlc/source/mysqlc_databasemetadata.cxx b/mysqlc/source/mysqlc_databasemetadata.cxx index b64c87c99f72..17b845b2b03b 100644 --- a/mysqlc/source/mysqlc_databasemetadata.cxx +++ b/mysqlc/source/mysqlc_databasemetadata.cxx @@ -78,13 +78,9 @@ void lcl_setRows_throw(const Reference< XResultSet >& _xResultSet,sal_Int32 _nTy ODatabaseMetaData::ODatabaseMetaData(OConnection& _rCon) :m_rConnection(_rCon) - ,m_bUseCatalog(true) ,meta(_rCon.getConnectionSettings().cppConnection->getMetaData()) ,identifier_quote_string_set(false) { - osl_atomic_increment(&m_refCount); - m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable()); - osl_atomic_decrement(&m_refCount); } ODatabaseMetaData::~ODatabaseMetaData() diff --git a/mysqlc/source/mysqlc_databasemetadata.hxx b/mysqlc/source/mysqlc_databasemetadata.hxx index b8011763c5a4..172c5ee364bd 100644 --- a/mysqlc/source/mysqlc_databasemetadata.hxx +++ b/mysqlc/source/mysqlc_databasemetadata.hxx @@ -42,7 +42,6 @@ namespace connectivity class ODatabaseMetaData : public ODatabaseMetaData_BASE { OConnection& m_rConnection; - bool m_bUseCatalog; protected: sql::DatabaseMetaData * meta; rtl::OUString identifier_quote_string; |