From 6fb45286490f866013c90a9d5dc4d296e67c7d04 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 1 Sep 2019 13:42:22 +0200 Subject: loplugin:unusedmethods Change-Id: Ifaf3860a31fc151bb7052db1b87962b8aba27c37 Reviewed-on: https://gerrit.libreoffice.org/78366 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/accessibility/DescriptionGenerator.cxx | 33 ----------------------- 1 file changed, 33 deletions(-) (limited to 'svx/source/accessibility') 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 (""); - } -} - - } // end of namespace accessibility /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit