diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-17 11:44:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-17 14:51:23 +0100 |
commit | 2cbf83e20889351e2d2a6e29e5c7d9250af58647 (patch) | |
tree | 9cea9bf90ff8bfcf79e7d2b827fdea9bdfdf8ad1 /chart2/source/tools/TitleHelper.cxx | |
parent | 51648c8de8dc060abc8dff1af105acfccadab77d (diff) |
loplugin:unusedmethods
Change-Id: I58c60262ca543bafb4db4433dbb98b195f7571ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130063
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools/TitleHelper.cxx')
-rw-r--r-- | chart2/source/tools/TitleHelper.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx index 58d4d6980aa6..68cc9a290e43 100644 --- a/chart2/source/tools/TitleHelper.cxx +++ b/chart2/source/tools/TitleHelper.cxx @@ -394,27 +394,6 @@ void TitleHelper::removeTitle( TitleHelper::eTitleType nTitleIndex bool TitleHelper::getTitleType( eTitleType& rType , const css::uno::Reference< css::chart2::XTitle >& xTitle - , ChartModel& rModel ) -{ - if( !xTitle.is() ) - return false; - - Reference< chart2::XTitle > xCurrentTitle; - for( sal_Int32 nTitleType = TITLE_BEGIN; nTitleType < NORMAL_TITLE_END; nTitleType++ ) - { - xCurrentTitle = TitleHelper::getTitle( static_cast<eTitleType>(nTitleType), rModel ); - if( xCurrentTitle == xTitle ) - { - rType = static_cast<eTitleType>(nTitleType); - return true; - } - } - - return false; -} - -bool TitleHelper::getTitleType( eTitleType& rType - , const css::uno::Reference< css::chart2::XTitle >& xTitle , const rtl::Reference<ChartModel>& xModel ) { if( !xTitle.is() || !xModel.is() ) |