summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-23 20:49:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-24 08:12:31 +0200
commit6a22fc81e219667566b9cc3ed5e9de1898c1fe6b (patch)
treefaf240652c3762ccda48357efb2717b59df6fcc6 /dbaccess
parent951b6a9570ae2665f7b6e7cdd6d24d1fc513ba90 (diff)
loplugin:unusedmethods
Change-Id: Ieec5099a8ce9fa3f07e36be244071efc1b101cf7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92803 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/KeySet.cxx40
-rw-r--r--dbaccess/source/core/api/KeySet.hxx1
2 files changed, 0 insertions, 41 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 1e12ba40f7ec..d9342b15b18b 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -919,46 +919,6 @@ void OKeySet::deleteRow(const ORowSetRow& _rDeleteRow,const connectivity::OSQLTa
}
}
-Reference<XNameAccess> OKeySet::getKeyColumns() const
-{
- // use keys and indexes for exact positioning
- // first the keys
-
- Reference<XIndexAccess> xKeys = m_xTableKeys;
- if ( !xKeys.is() )
- {
- Reference<XPropertySet> xSet(m_xTable,UNO_QUERY);
- const Reference<XNameAccess> xPrimaryKeyColumns = getPrimaryKeyColumns_throw(xSet);
- return xPrimaryKeyColumns;
- }
-
- Reference<XColumnsSupplier> xKeyColsSup;
- Reference<XNameAccess> xKeyColumns;
- if(xKeys.is())
- {
- Reference<XPropertySet> xProp;
- sal_Int32 nCount = xKeys->getCount();
- for(sal_Int32 i = 0;i< nCount;++i)
- {
- xProp.set(xKeys->getByIndex(i),UNO_QUERY);
- if ( xProp.is() )
- {
- sal_Int32 nKeyType = 0;
- xProp->getPropertyValue(PROPERTY_TYPE) >>= nKeyType;
- if(KeyType::PRIMARY == nKeyType)
- {
- xKeyColsSup.set(xProp,UNO_QUERY);
- OSL_ENSURE(xKeyColsSup.is(),"Columnsupplier is null!");
- xKeyColumns = xKeyColsSup->getColumns();
- break;
- }
- }
- }
- }
-
- return xKeyColumns;
-}
-
bool OKeySet::next()
{
m_bInserted = m_bUpdated = m_bDeleted = false;
diff --git a/dbaccess/source/core/api/KeySet.hxx b/dbaccess/source/core/api/KeySet.hxx
index c0f034081a62..92ed794429ab 100644
--- a/dbaccess/source/core/api/KeySet.hxx
+++ b/dbaccess/source/core/api/KeySet.hxx
@@ -114,7 +114,6 @@ namespace dbaccess
*/
void copyRowValue(const ORowSetRow& _rInsertRow, ORowSetRow const & _rKeyRow, sal_Int32 i_nBookmark);
- css::uno::Reference< css::container::XNameAccess > getKeyColumns() const;
// returns true if it did any work
bool fillAllRows();
bool fetchRow();