From 6fc3fd29a6d08ee85d3ed5a3bad5de754f568314 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Jan 2016 08:39:18 +0200 Subject: loplugin:unusedmethods unused return value in chart2 Change-Id: Ibd8ae8ade2a1037deac1e29ce1b867c2847a9dff --- chart2/source/inc/CloneHelper.hxx | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'chart2/source/inc/CloneHelper.hxx') 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( -- cgit