summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSantiago Martinez <smvarela@gmail.com>2012-04-24 08:52:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-24 08:54:33 +0100
commit78aa62bc54e67b4552c18ae67be9789be5ef2409 (patch)
tree834cc96615a3de75a619fb21e0e1c9aa9609c699 /sw
parent1f9b45377039f5839f8ee4dde265a297ec146062 (diff)
Remove unused code in sw
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/maildispatcher.cxx8
-rw-r--r--sw/source/ui/inc/maildispatcher.hxx5
2 files changed, 0 insertions, 13 deletions
diff --git a/sw/source/ui/dbui/maildispatcher.cxx b/sw/source/ui/dbui/maildispatcher.cxx
index 5e0f9e513957..3eb663252889 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 ad5521d3814a..d11d58f98d4c 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();