diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-19 13:17:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-19 19:18:51 +0200 |
commit | e2c7a6bd572644b928704f6cb3696b568ac0aba1 (patch) | |
tree | b9f64cf65d77edf2798b03de60d47602ebe95b15 /chart2 | |
parent | fcf776a09a2c5cd692480c8ec4a678e3d04739c9 (diff) |
loplugin::unusedmethods
Change-Id: I6a07860edb13588b83345babeb53675aedc43f7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150607
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/DataSeriesHelper.hxx | 5 | ||||
-rw-r--r-- | chart2/source/inc/LifeTime.hxx | 17 | ||||
-rw-r--r-- | chart2/source/inc/ModifyListenerHelper.hxx | 20 | ||||
-rw-r--r-- | chart2/source/view/main/VTitle.cxx | 14 | ||||
-rw-r--r-- | chart2/source/view/main/VTitle.hxx | 2 |
5 files changed, 0 insertions, 58 deletions
diff --git a/chart2/source/inc/DataSeriesHelper.hxx b/chart2/source/inc/DataSeriesHelper.hxx index 16bd9d771973..b1f4e0ba3441 100644 --- a/chart2/source/inc/DataSeriesHelper.hxx +++ b/chart2/source/inc/DataSeriesHelper.hxx @@ -94,11 +94,6 @@ getAllDataSequences( OOO_DLLPUBLIC_CHARTTOOLS rtl::Reference< ::chart::DataSource > getDataSource( const std::vector< rtl::Reference< ::chart::DataSeries > > & aSeries ); -/** Get the label of a labeled sequence including necessary automatic generation - */ -OOO_DLLPUBLIC_CHARTTOOLS OUString getLabelForLabeledDataSequence( - const css::uno::Reference< css::chart2::data::XLabeledDataSequence > & xLabeledSeq ); - OOO_DLLPUBLIC_CHARTTOOLS void setStackModeAtSeries( const std::vector< rtl::Reference< ::chart::DataSeries > > & aSeries, const rtl::Reference< ::chart::BaseCoordinateSystem > & xCorrespondingCoordinateSystem, diff --git a/chart2/source/inc/LifeTime.hxx b/chart2/source/inc/LifeTime.hxx index fb9dd7a7f0b6..e16edd1e595a 100644 --- a/chart2/source/inc/LifeTime.hxx +++ b/chart2/source/inc/LifeTime.hxx @@ -193,23 +193,6 @@ private: LifeTimeGuard& operator= ( const LifeTimeGuard& ) = delete; }; -template<class T> -class NegativeGuard final -{ - T * m_pT; -public: - - NegativeGuard(T & t) : m_pT(&t) - { - m_pT->release(); - } - - ~NegativeGuard() - { - m_pT->acquire(); - } -}; - }//end namespace apphelper /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/inc/ModifyListenerHelper.hxx b/chart2/source/inc/ModifyListenerHelper.hxx index 9f0dd68aadc1..ee90d407a66f 100644 --- a/chart2/source/inc/ModifyListenerHelper.hxx +++ b/chart2/source/inc/ModifyListenerHelper.hxx @@ -197,16 +197,6 @@ void addListenerToAllMapElements( impl::addListenerToMappedElementFunctor< typename Container::value_type >( xListener )); } -template< typename T > -void addListenerToAllSequenceElements( - const css::uno::Sequence< T > & rSequence, - const css::uno::Reference< css::util::XModifyListener > & xListener ) -{ - if( xListener.is()) - std::for_each( rSequence.begin(), rSequence.end(), - impl::addListenerFunctor< T >( xListener )); -} - template< class InterfaceRef > void removeListener( const InterfaceRef & xObject, @@ -259,16 +249,6 @@ void removeListenerFromAllMapElements( impl::removeListenerFromMappedElementFunctor< typename Container::value_type >( xListener )); } -template< typename T > -void removeListenerFromAllSequenceElements( - const css::uno::Sequence< T > & rSequence, - const css::uno::Reference< css::util::XModifyListener > & xListener ) -{ - if( xListener.is()) - std::for_each( rSequence.begin(), rSequence.end(), - impl::removeListenerFunctor< T >( xListener )); -} - } // namespace chart::ModifyListenerHelper /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 @@ -55,8 +55,6 @@ public: 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); private: |