[Libreoffice-commits] .: sw/source unusedcode.easy

Caolán McNamara caolan at kemper.freedesktop.org
Tue Apr 24 00:55:07 PDT 2012


 sw/source/ui/dbui/maildispatcher.cxx |    8 --------
 sw/source/ui/inc/maildispatcher.hxx  |    5 -----
 unusedcode.easy                      |    1 -
 3 files changed, 14 deletions(-)

New commits:
commit 78aa62bc54e67b4552c18ae67be9789be5ef2409
Author: Santiago Martinez <smvarela at gmail.com>
Date:   Tue Apr 24 08:52:28 2012 +0100

    Remove unused code in sw

diff --git a/sw/source/ui/dbui/maildispatcher.cxx b/sw/source/ui/dbui/maildispatcher.cxx
index 5e0f9e5..3eb6632 100644
--- a/sw/source/ui/dbui/maildispatcher.cxx
+++ b/sw/source/ui/dbui/maildispatcher.cxx
@@ -208,14 +208,6 @@ void MailDispatcher::addListener(::rtl::Reference<IMailDispatcherListener> liste
     listeners_.push_back(listener);
 }
 
-void MailDispatcher::removeListener(::rtl::Reference<IMailDispatcherListener> listener)
-{
-    OSL_PRECOND(!shutdown_requested_, "MailDispatcher thread is shuting down already");
-
-    ::osl::MutexGuard guard(listener_container_mutex_);
-    listeners_.remove(listener);
-}
-
 std::list< ::rtl::Reference<IMailDispatcherListener> > MailDispatcher::cloneListener()
 {
     ::osl::MutexGuard guard(listener_container_mutex_);
diff --git a/sw/source/ui/inc/maildispatcher.hxx b/sw/source/ui/inc/maildispatcher.hxx
index ad5521d..d11d58f 100644
--- a/sw/source/ui/inc/maildispatcher.hxx
+++ b/sw/source/ui/inc/maildispatcher.hxx
@@ -136,11 +136,6 @@ public:
     */
     void addListener(::rtl::Reference<IMailDispatcherListener> listener);
 
-    /**
-        Unregister a listener for mail dispatcher events
-    */
-    void removeListener(::rtl::Reference<IMailDispatcherListener> listener);
-
 protected:
     virtual void SAL_CALL run();
     virtual void SAL_CALL onTerminated();
diff --git a/unusedcode.easy b/unusedcode.easy
index a96ce89..e1cd14b 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -22,7 +22,6 @@ MSDffImportRecords::Insert(SvxMSDffImportRec* const&, unsigned short&)
 MSDffImportRecords::Insert(SvxMSDffImportRec* const*, unsigned short)
 MSDffImportRecords::Remove(SvxMSDffImportRec* const&, unsigned short)
 MSDffImportRecords::Remove(unsigned short, unsigned short)
-MailDispatcher::removeListener(rtl::Reference<IMailDispatcherListener>)
 Matrix3d::Inverse() const
 Matrix3d::Matrix3d()
 PopupMenu::SetSelectedEntry(unsigned short)


More information about the Libreoffice-commits mailing list