From 897be475c155cfd772cc4a252e6073cd6aa43597 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 27 Apr 2020 11:00:08 +0200 Subject: loplugin:unusedfields Change-Id: I47034909e6258fc4d65d39f484d71290f793107d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92967 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/core/api/KeySet.cxx | 2 -- dbaccess/source/core/api/KeySet.hxx | 2 -- dbaccess/source/core/api/OptimisticSet.cxx | 2 +- dbaccess/source/core/api/RowSetCache.cxx | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index d9342b15b18b..c9f9ac8a3e22 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -103,7 +103,6 @@ namespace OKeySet::OKeySet(const connectivity::OSQLTable& _xTable, - const Reference< XIndexAccess>& _xTableKeys, const OUString& _rUpdateTableName, // this can be the alias or the full qualified name const Reference< XSingleSelectQueryAnalyzer >& _xComposer, const ORowSetValueVector& _aParameterValueForCache, @@ -112,7 +111,6 @@ OKeySet::OKeySet(const connectivity::OSQLTable& _xTable, :OCacheSet(i_nMaxRows) ,m_aParameterValueForCache(new ORowSetValueVector(_aParameterValueForCache)) ,m_xTable(_xTable) - ,m_xTableKeys(_xTableKeys) ,m_xComposer(_xComposer) ,m_sUpdateTableName(_rUpdateTableName) ,m_rRowCount(o_nRowCount) diff --git a/dbaccess/source/core/api/KeySet.hxx b/dbaccess/source/core/api/KeySet.hxx index 92ed794429ab..417774cae70f 100644 --- a/dbaccess/source/core/api/KeySet.hxx +++ b/dbaccess/source/core/api/KeySet.hxx @@ -87,7 +87,6 @@ namespace dbaccess std::unique_ptr m_pParameterNames; // contains all parameter names std::unique_ptr m_pForeignColumnNames; // contains all column names of the rest connectivity::OSQLTable m_xTable; // reference to our table - css::uno::Reference< css::container::XIndexAccess> m_xTableKeys; // we need a different SQL (statement) for each different combination // of NULLness of key & foreign columns; // each subclause is either "colName = ?" or "colName IS NULL" @@ -145,7 +144,6 @@ namespace dbaccess virtual ~OKeySet() override; public: OKeySet(const connectivity::OSQLTable& _xTable, - const css::uno::Reference< css::container::XIndexAccess>& _xTableKeys, const OUString& _rUpdateTableName, const css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer >& _xComposer, const ORowSetValueVector& _aParameterValueForCache, diff --git a/dbaccess/source/core/api/OptimisticSet.cxx b/dbaccess/source/core/api/OptimisticSet.cxx index 3b5ea1367512..734e58edf34e 100644 --- a/dbaccess/source/core/api/OptimisticSet.cxx +++ b/dbaccess/source/core/api/OptimisticSet.cxx @@ -76,7 +76,7 @@ OptimisticSet::OptimisticSet(const Reference& _rContext, const ORowSetValueVector& _aParameterValueForCache, sal_Int32 i_nMaxRows, sal_Int32& o_nRowCount) - :OKeySet(nullptr,nullptr,OUString(),_xComposer,_aParameterValueForCache,i_nMaxRows,o_nRowCount) + :OKeySet(nullptr,OUString(),_xComposer,_aParameterValueForCache,i_nMaxRows,o_nRowCount) ,m_aSqlParser( _rContext ) ,m_aSqlIterator( i_xConnection, Reference(_xComposer,UNO_QUERY_THROW)->getTables(), m_aSqlParser ) ,m_bResultSetChanged(false) diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 63cc6318aafc..e683a74e9c7a 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -303,7 +303,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } } - OKeySet* pKeySet = new OKeySet(m_aUpdateTable,xUpdateTableKeys,aUpdateTableName ,_xAnalyzer,_aParameterValueForCache,i_nMaxRows,m_nRowCount); + OKeySet* pKeySet = new OKeySet(m_aUpdateTable, aUpdateTableName ,_xAnalyzer,_aParameterValueForCache,i_nMaxRows,m_nRowCount); try { m_xCacheSet = pKeySet; -- cgit