diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-01 13:42:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-01 15:35:41 +0200 |
commit | 6fb45286490f866013c90a9d5dc4d296e67c7d04 (patch) | |
tree | 4c7fc3ba0f592c80884d34f76e6b1f9a8e0532ad /svx | |
parent | f767d5e2b017c0d0cfd23ff3318cb30901847722 (diff) |
loplugin:unusedmethods
Change-Id: Ifaf3860a31fc151bb7052db1b87962b8aba27c37
Reviewed-on: https://gerrit.libreoffice.org/78366
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 33 | ||||
-rw-r--r-- | svx/source/inc/tablemodel.hxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/misc/ImageMapInfo.cxx | 10 | ||||
-rw-r--r-- | svx/source/table/tablemodel.cxx | 9 |
4 files changed, 0 insertions, 55 deletions
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx index 9afb976571ee..636baf66cefb 100644 --- a/svx/source/accessibility/DescriptionGenerator.cxx +++ b/svx/source/accessibility/DescriptionGenerator.cxx @@ -226,39 +226,6 @@ void DescriptionGenerator::AddInteger (const OUString& sPropertyName, } } - -void DescriptionGenerator::AddString (const OUString& sPropertyName, - const OUString& sLocalizedName, sal_uInt16 nWhichId) -{ - msDescription.append(sLocalizedName); - msDescription.append('='); - - try - { - if (mxSet.is()) - { - uno::Any aValue = mxSet->getPropertyValue (sPropertyName); - OUString sValue; - aValue >>= sValue; - - if (nWhichId != 0xffff) - { - SolarMutexGuard aGuard; - OUString sLocalizedValue = - SvxUnogetInternalNameForItem(nWhichId, sValue); - msDescription.append (sLocalizedValue); - } - else - msDescription.append (sValue); - } - } - catch (const css::beans::UnknownPropertyException &) - { - msDescription.append ("<unknown>"); - } -} - - } // end of namespace accessibility /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/inc/tablemodel.hxx b/svx/source/inc/tablemodel.hxx index 0dba1c058866..78aabc51f692 100644 --- a/svx/source/inc/tablemodel.hxx +++ b/svx/source/inc/tablemodel.hxx @@ -85,9 +85,6 @@ public: /// Get the width of all columns in this table. std::vector<sal_Int32> getColumnWidths(); - /// Get the height of all rows in this table. - std::vector<sal_Int32> getRowHeights(); - void dumpAsXml(xmlTextWriterPtr pWriter) const; // ICellRange diff --git a/svx/source/sdr/misc/ImageMapInfo.cxx b/svx/source/sdr/misc/ImageMapInfo.cxx index 39a0091116c4..754e341c811b 100644 --- a/svx/source/sdr/misc/ImageMapInfo.cxx +++ b/svx/source/sdr/misc/ImageMapInfo.cxx @@ -119,13 +119,3 @@ IMapObject* SvxIMapInfo::GetHitIMapObject(const SdrObject* pObj, const Point& rW return pIMapObj; } - -ImageMap* SvxIMapInfo::GetImageMapForObject(SdrObject* pObj) -{ - SvxIMapInfo* pIMapInfo = GetIMapInfo(pObj); - if (pIMapInfo) - { - return const_cast<ImageMap*>(&(pIMapInfo->GetImageMap())); - } - return nullptr; -}
\ No newline at end of file diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index d1de143dc898..7b0cc4de5806 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -303,15 +303,6 @@ sal_Int32 SAL_CALL TableModel::getRowCount() return getRowCountImpl(); } -std::vector<sal_Int32> TableModel::getRowHeights() -{ - std::vector<sal_Int32> aRet; - for (const TableRowRef& xRow : maRows) - aRet.push_back(xRow->getHeight()); - return aRet; -} - - sal_Int32 SAL_CALL TableModel::getColumnCount() { ::SolarMutexGuard aGuard; |