diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 08:39:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 10:49:24 +0200 |
commit | 6fc3fd29a6d08ee85d3ed5a3bad5de754f568314 (patch) | |
tree | a76c62a18f860863d94652400688d64660b72ad0 /chart2/source/inc | |
parent | bc80f951c14208eae6060fe2e6a941f9dd2d619c (diff) |
loplugin:unusedmethods unused return value in chart2
Change-Id: Ibd8ae8ade2a1037deac1e29ce1b867c2847a9dff
Diffstat (limited to 'chart2/source/inc')
-rw-r--r-- | chart2/source/inc/CloneHelper.hxx | 19 | ||||
-rw-r--r-- | chart2/source/inc/CommonFunctors.hxx | 40 | ||||
-rw-r--r-- | chart2/source/inc/LifeTime.hxx | 2 | ||||
-rw-r--r-- | chart2/source/inc/PropertyHelper.hxx | 27 | ||||
-rw-r--r-- | chart2/source/inc/chartview/DrawModelWrapper.hxx | 1 |
5 files changed, 1 insertions, 88 deletions
diff --git a/chart2/source/inc/CloneHelper.hxx b/chart2/source/inc/CloneHelper.hxx index 24e5f1c25611..6d1f44f130ed 100644 --- a/chart2/source/inc/CloneHelper.hxx +++ b/chart2/source/inc/CloneHelper.hxx @@ -47,25 +47,6 @@ template< class Interface > } }; -/// functor that clones a map element with a UNO-Reference as value -template< typename Key, class Interface > - struct CreateRefWithKeyClone : public ::std::unary_function< - ::std::pair< Key, Interface >, - ::std::pair< Key, Interface > > -{ - ::std::pair< Key, Interface > operator() ( - const ::std::pair< Key, Interface > & rOther ) - { - Interface xResult; - ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > - xCloneable( rOther.second, ::com::sun::star::uno::UNO_QUERY ); - if( xCloneable.is()) - xResult.set( xCloneable->createClone(), ::com::sun::star::uno::UNO_QUERY ); - - return ::std::make_pair< Key, Interface >( rOther.first, xResult ); - } -}; - /// clones a vector of UNO-References template< class Interface > void CloneRefVector( diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx index 01e44d6e6f19..4599d0c47bad 100644 --- a/chart2/source/inc/CommonFunctors.hxx +++ b/chart2/source/inc/CommonFunctors.hxx @@ -134,46 +134,6 @@ struct OOO_DLLPUBLIC_CHARTTOOLS DoubleToOUString : public ::std::unary_function< } }; -/** can be used to find an element with a specific first element in e.g. a - vector of pairs (for searching keys in maps you will of course use map::find) - */ -template< typename First, typename Second > - class FirstOfPairEquals : public ::std::unary_function< ::std::pair< First, Second >, bool > -{ -public: - FirstOfPairEquals( const First & aVal ) - : m_aValueToCompareWith( aVal ) - {} - bool operator() ( const ::std::pair< First, Second > & rElem ) - { - return rElem.first == m_aValueToCompareWith; - } - -private: - First m_aValueToCompareWith; -}; - -/** can be used to find a certain value in a map - - ::std::find_if( aMap.begin(), aMap.end(), - SecondOfPairEquals< string, int >( 42 )); - */ -template< typename Key, typename Value > - class SecondOfPairEquals : public ::std::unary_function< ::std::pair< Key, Value >, bool > -{ -public: - SecondOfPairEquals( const Value & aVal ) - : m_aValueToCompareWith( aVal ) - {} - bool operator() ( const ::std::pair< Key, Value > & rMapElem ) - { - return rMapElem.second == m_aValueToCompareWith; - } - -private: - Value m_aValueToCompareWith; -}; - } // namespace CommonFunctors } // namespace chart diff --git a/chart2/source/inc/LifeTime.hxx b/chart2/source/inc/LifeTime.hxx index 83b6b2b9964c..6034027ed176 100644 --- a/chart2/source/inc/LifeTime.hxx +++ b/chart2/source/inc/LifeTime.hxx @@ -97,7 +97,7 @@ OOO_DLLPUBLIC_CHARTTOOLS bool g_close_isNeedToCancelLongLastingCalls( bool throw ( ::com::sun::star::util::CloseVetoException ); OOO_DLLPUBLIC_CHARTTOOLS void g_close_endTryClose(bool bDeliverOwnership, bool bMyVeto ); OOO_DLLPUBLIC_CHARTTOOLS void g_close_endTryClose_doClose(); -OOO_DLLPUBLIC_CHARTTOOLS bool g_addCloseListener( const ::com::sun::star::uno::Reference< +OOO_DLLPUBLIC_CHARTTOOLS void g_addCloseListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener > & xListener ) throw(::com::sun::star::uno::RuntimeException); diff --git a/chart2/source/inc/PropertyHelper.hxx b/chart2/source/inc/PropertyHelper.hxx index 9d52c07a4022..5e82292d2762 100644 --- a/chart2/source/inc/PropertyHelper.hxx +++ b/chart2/source/inc/PropertyHelper.hxx @@ -152,33 +152,6 @@ struct OOO_DLLPUBLIC_CHARTTOOLS PropertyNameLess } }; -struct OOO_DLLPUBLIC_CHARTTOOLS PropertyLess : public ::std::binary_function< - ::com::sun::star::beans::Property, - ::com::sun::star::beans::Property, - bool > -{ - bool operator() ( const ::com::sun::star::beans::Property & rFirst, - const ::com::sun::star::beans::Property & rSecond ) - { - return ( rFirst.Name.compareTo( rSecond.Name ) < 0 ); - } -}; - -struct OOO_DLLPUBLIC_CHARTTOOLS PropertyValueNameEquals : public ::std::unary_function< ::com::sun::star::beans::PropertyValue, bool > -{ - explicit PropertyValueNameEquals( const OUString & rName ) : - m_aName( rName ) - {} - - bool operator() ( const ::com::sun::star::beans::PropertyValue & rPropValue ) - { - return rPropValue.Name.equals( m_aName ); - } - -private: - OUString m_aName; -}; - } // namespace chart // INCLUDED_CHART2_SOURCE_INC_PROPERTYHELPER_HXX diff --git a/chart2/source/inc/chartview/DrawModelWrapper.hxx b/chart2/source/inc/chartview/DrawModelWrapper.hxx index b3d218c233f7..2f43bd5938ff 100644 --- a/chart2/source/inc/chartview/DrawModelWrapper.hxx +++ b/chart2/source/inc/chartview/DrawModelWrapper.hxx @@ -68,7 +68,6 @@ public: OutputDevice* getReferenceDevice() const; SfxItemPool& GetItemPool(); - SAL_DLLPRIVATE const SfxItemPool& GetItemPool() const; SAL_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoModel() override; |