From a0183e89b7bb687f6fa09acbb72babdee9cdb6b0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 5 Mar 2015 09:15:19 +0000 Subject: callcatcher: update unused code Change-Id: I81b6f8af2b5c539b7adb507e787497b5ed51fa39 --- reportdesign/source/core/api/Section.cxx | 19 ------------------- reportdesign/source/core/inc/Section.hxx | 3 --- 2 files changed, 22 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx index 3ce3a2d8476f..465087310658 100644 --- a/reportdesign/source/core/api/Section.cxx +++ b/reportdesign/source/core/api/Section.cxx @@ -516,25 +516,6 @@ void SAL_CALL OSection::removeVetoableChangeListener( const OUString& PropertyNa SectionPropertySet::removeVetoableChangeListener( PropertyName, aListener ); } -void OSection::lcl_copySection(const uno::Reference< report::XSection>& _xSource,uno::Reference< report::XSection>& _xDest) -{ - if ( _xSource.is() ) - { - ::comphelper::copyProperties(_xSource.get(),_xDest.get()); - sal_Int32 nCount = _xSource->getCount(); - for(sal_Int32 i = 0;i != nCount;++i) - { - uno::Reference xClone(_xSource->getByIndex(i),uno::UNO_QUERY); - OSL_ENSURE(xClone.is(),"No XCloneable interface found!"); - if ( xClone.is() ) - { - uno::Reference< drawing::XShape> xShape(xClone->createClone(),uno::UNO_QUERY); - _xDest->add(xShape); - } - } - } -} - void SAL_CALL OSection::add( const uno::Reference< drawing::XShape >& xShape ) throw (uno::RuntimeException, std::exception) { { diff --git a/reportdesign/source/core/inc/Section.hxx b/reportdesign/source/core/inc/Section.hxx index f0a3031fc22b..03d06fcd2bf9 100644 --- a/reportdesign/source/core/inc/Section.hxx +++ b/reportdesign/source/core/inc/Section.hxx @@ -228,9 +228,6 @@ namespace reportdesign static OSection* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxComponent ); static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId(); - static void lcl_copySection(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xSource - ,::com::sun::star::uno::Reference< ::com::sun::star::report::XSection>& _xDest); - void notifyElementAdded(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape); void notifyElementRemoved(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape); }; -- cgit