This patch removes unused code as listed in unusedcode.easy
From 298ed7c7d48f92a8bd0dc203efaf8c72ea10a445 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvar...@gmail.com>
Date: Wed, 22 Feb 2012 22:04:12 +0100
Subject: [PATCH] Remove unused code as listed in unusedcode.easy

---
 .../inc/helper/uiconfigelementwrapperbase.hxx      |    1 -
 framework/inc/helper/uielementwrapperbase.hxx      |    1 -
 .../source/helper/uiconfigelementwrapperbase.cxx   |    7 -------
 framework/source/helper/uielementwrapperbase.cxx   |    7 -------
 unusedcode.easy                                    |    2 --
 5 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/framework/inc/helper/uiconfigelementwrapperbase.hxx b/framework/inc/helper/uiconfigelementwrapperbase.hxx
index ee39586..63b3d58 100644
--- a/framework/inc/helper/uiconfigelementwrapperbase.hxx
+++ b/framework/inc/helper/uiconfigelementwrapperbase.hxx
@@ -92,7 +92,6 @@ class UIConfigElementWrapperBase : public ::com::sun::star::lang::XTypeProvider
         virtual  ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( ::com::sun::star::uno::RuntimeException );
 
         // XComponent
-        virtual  void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException) = 0;
         virtual  void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
         virtual  void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
 
diff --git a/framework/inc/helper/uielementwrapperbase.hxx b/framework/inc/helper/uielementwrapperbase.hxx
index 9f47028..2893e58 100644
--- a/framework/inc/helper/uielementwrapperbase.hxx
+++ b/framework/inc/helper/uielementwrapperbase.hxx
@@ -85,7 +85,6 @@ class UIElementWrapperBase : public ::com::sun::star::lang::XTypeProvider
         virtual  ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( ::com::sun::star::uno::RuntimeException );
 
         // XComponent
-        virtual  void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException) = 0;
         virtual  void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
         virtual  void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
 
diff --git a/framework/source/helper/uiconfigelementwrapperbase.cxx b/framework/source/helper/uiconfigelementwrapperbase.cxx
index 5e04b93..5c28d26 100644
--- a/framework/source/helper/uiconfigelementwrapperbase.cxx
+++ b/framework/source/helper/uiconfigelementwrapperbase.cxx
@@ -131,13 +131,6 @@ UIConfigElementWrapperBase::~UIConfigElementWrapperBase()
 }
 
 // XComponent
-void SAL_CALL UIConfigElementWrapperBase::dispose() throw (::com::sun::star::uno::RuntimeException)
-{
-    // must be implemented by derived class
-    ResetableGuard aLock( m_aLock );
-    m_bDisposed = sal_True;
-}
-
 void SAL_CALL UIConfigElementWrapperBase::addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException)
 {
     m_aListenerContainer.addInterface( ::getCppuType( ( const css::uno::Reference< css::lang::XEventListener >* ) NULL ), xListener );
diff --git a/framework/source/helper/uielementwrapperbase.cxx b/framework/source/helper/uielementwrapperbase.cxx
index 8604e0e..d069f47 100644
--- a/framework/source/helper/uielementwrapperbase.cxx
+++ b/framework/source/helper/uielementwrapperbase.cxx
@@ -106,13 +106,6 @@ UIElementWrapperBase::~UIElementWrapperBase()
 {
 }
 
-void SAL_CALL UIElementWrapperBase::dispose() throw (::com::sun::star::uno::RuntimeException)
-{
-    // must be implemented by derived class
-    ResetableGuard aLock( m_aLock );
-    m_bDisposed = sal_True;
-}
-
 void SAL_CALL UIElementWrapperBase::addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException)
 {
     m_aListenerContainer.addInterface( ::getCppuType( ( const css::uno::Reference< css::lang::XEventListener >* ) NULL ), xListener );
diff --git a/unusedcode.easy b/unusedcode.easy
index 3869a88..80d6eb1 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1063,8 +1063,6 @@ formula::EditBox::EditBox(Window*, long)
 formula::FormulaListBox::FormulaListBox(Window*, long)
 formula::FormulaTokenIterator::First()
 framework::TabWindow::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&)
-framework::UIConfigElementWrapperBase::dispose()
-framework::UIElementWrapperBase::dispose()
 jfw_plugin::VendorBase::createInstance()
 jfw_plugin::VendorBase::getJavaExePaths(int*)
 jvmaccess::ClassPath::doLoadClass(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, void*, rtl::OUString const&, rtl::OUString const&)
-- 
1.7.7.6

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to