From e2c7a6bd572644b928704f6cb3696b568ac0aba1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 19 Apr 2023 13:17:17 +0200 Subject: loplugin::unusedmethods Change-Id: I6a07860edb13588b83345babeb53675aedc43f7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150607 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/view/main/VTitle.cxx | 14 -------------- chart2/source/view/main/VTitle.hxx | 2 -- 2 files changed, 16 deletions(-) (limited to 'chart2/source/view') diff --git a/chart2/source/view/main/VTitle.cxx b/chart2/source/view/main/VTitle.cxx index e820e75f9c8b..e251fe95971c 100644 --- a/chart2/source/view/main/VTitle.cxx +++ b/chart2/source/view/main/VTitle.cxx @@ -105,20 +105,6 @@ bool VTitle::isVisible(const rtl::Reference< Title >& xTitle) { return bShow; } -bool VTitle::isVisible(const uno::Reference< XTitle >& xTitle) { - if (!xTitle.is()) { - return false; - } - bool bShow = true; - try { - uno::Reference< beans::XPropertySet > xTitleProps(xTitle, uno::UNO_QUERY_THROW); - xTitleProps->getPropertyValue("Visible") >>= bShow; - } catch (const uno::Exception &) { - DBG_UNHANDLED_EXCEPTION("chart2"); - } - return bShow; -} - void VTitle::createShapes( const awt::Point& rPos diff --git a/chart2/source/view/main/VTitle.hxx b/chart2/source/view/main/VTitle.hxx index a0c999dae957..792d7f6a0a5c 100644 --- a/chart2/source/view/main/VTitle.hxx +++ b/chart2/source/view/main/VTitle.hxx @@ -54,8 +54,6 @@ public: css::awt::Size getUnrotatedSize() const; css::awt::Size getFinalSize() const; void changePosition( const css::awt::Point& rPos ); - static bool isVisible( - const css::uno::Reference< css::chart2::XTitle > & xTitle); static bool isVisible( const rtl::Reference< ::chart::Title > & xTitle); -- cgit