summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 08:53:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 14:05:52 +0200
commit464fe63e334f697c5801d4ef0c5e4a2896d28c04 (patch)
treeb1b2dfd57751c893825e2b38053e9bad9c172f6e /sw
parentaa7e7747f4296b3b92379c3c7703b80ad8af6a8b (diff)
loplugin:virtualdead in sw
Change-Id: Ib96caad8a2bbfc4ff9a5191abbd49789d142d2eb Reviewed-on: https://gerrit.libreoffice.org/79587 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/IDocumentState.hxx2
-rw-r--r--sw/source/core/doc/DocumentStateManager.cxx4
-rw-r--r--sw/source/core/inc/DocumentStateManager.hxx1
-rw-r--r--sw/source/filter/basflt/shellio.cxx1
-rw-r--r--sw/source/ui/dbui/mmoutputtypepage.cxx11
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx2
-rw-r--r--sw/source/uibase/dbui/maildispatcher.cxx8
-rw-r--r--sw/source/uibase/inc/imaildsplistener.hxx10
8 files changed, 0 insertions, 39 deletions
diff --git a/sw/inc/IDocumentState.hxx b/sw/inc/IDocumentState.hxx
index d108a91ccb3a..6374842bdb0f 100644
--- a/sw/inc/IDocumentState.hxx
+++ b/sw/inc/IDocumentState.hxx
@@ -45,8 +45,6 @@ public:
virtual void SetUpdateExpFieldStat(bool b) = 0;
- virtual void SetLoaded() = 0;
-
virtual bool IsEnableSetModified() const = 0;
virtual void SetEnableSetModified(bool bEnableSetModified) = 0;
diff --git a/sw/source/core/doc/DocumentStateManager.cxx b/sw/source/core/doc/DocumentStateManager.cxx
index dd78cf58f3b9..1a704c3e9980 100644
--- a/sw/source/core/doc/DocumentStateManager.cxx
+++ b/sw/source/core/doc/DocumentStateManager.cxx
@@ -113,10 +113,6 @@ void DocumentStateManager::SetUpdateExpFieldStat(bool b)
mbUpdateExpField = b;
}
-void DocumentStateManager::SetLoaded()
-{
-}
-
}
diff --git a/sw/source/core/inc/DocumentStateManager.hxx b/sw/source/core/inc/DocumentStateManager.hxx
index a4c448b543fb..e9b7d09bbc56 100644
--- a/sw/source/core/inc/DocumentStateManager.hxx
+++ b/sw/source/core/inc/DocumentStateManager.hxx
@@ -43,7 +43,6 @@ public:
bool IsNewDoc() const override;
void SetNewDoc(bool b) override;
void SetUpdateExpFieldStat(bool b) override;
- void SetLoaded() override;
private:
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index 37426ccd1c40..708e13c2535b 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -346,7 +346,6 @@ ErrCode SwReader::Read( const Reader& rOptions )
mxDoc->UpdateNumRule();
mxDoc->ChkCondColls();
mxDoc->SetAllUniqueFlyNames();
- mxDoc->getIDocumentState().SetLoaded();
// Clear unassigned cell styles, because they aren't needed anymore.
mxDoc->GetCellStyles().clear();
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index 83685a6692ea..d8766b8a3c9d 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -122,8 +122,6 @@ class SwMailDispatcherListener_Impl : public IMailDispatcherListener
public:
explicit SwMailDispatcherListener_Impl(SwSendMailDialog& rParentDlg);
- virtual void started(::rtl::Reference<MailDispatcher> xMailDispatcher) override;
- virtual void stopped(::rtl::Reference<MailDispatcher> xMailDispatcher) override;
virtual void idle(::rtl::Reference<MailDispatcher> xMailDispatcher) override;
virtual void mailDelivered(::rtl::Reference<MailDispatcher> xMailDispatcher,
uno::Reference< mail::XMailMessage> xMailMessage) override;
@@ -138,15 +136,6 @@ SwMailDispatcherListener_Impl::SwMailDispatcherListener_Impl(SwSendMailDialog& r
{
}
-void SwMailDispatcherListener_Impl::started(::rtl::Reference<MailDispatcher> /*xMailDispatcher*/)
-{
-}
-
-void SwMailDispatcherListener_Impl::stopped(
- ::rtl::Reference<MailDispatcher> /*xMailDispatcher*/)
-{
-}
-
void SwMailDispatcherListener_Impl::idle(::rtl::Reference<MailDispatcher> /*xMailDispatcher*/)
{
SolarMutexGuard aGuard;
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index a3625e788896..d9341d8c60ea 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -1080,8 +1080,6 @@ public:
explicit MailDispatcherListener_Impl( SwDBManager &rDBManager )
: m_rDBManager( rDBManager ) {}
- virtual void started( ::rtl::Reference<MailDispatcher> ) override {};
- virtual void stopped( ::rtl::Reference<MailDispatcher> ) override {};
virtual void idle( ::rtl::Reference<MailDispatcher> ) override {};
virtual void mailDelivered( ::rtl::Reference<MailDispatcher>,
diff --git a/sw/source/uibase/dbui/maildispatcher.cxx b/sw/source/uibase/dbui/maildispatcher.cxx
index 546fd3698032..e55e61bfb8ae 100644
--- a/sw/source/uibase/dbui/maildispatcher.cxx
+++ b/sw/source/uibase/dbui/maildispatcher.cxx
@@ -152,10 +152,6 @@ void MailDispatcher::start()
m_bActive = true;
m_aWakeupCondition.set();
thread_status_guard.clear();
-
- MailDispatcherListenerContainer_t aClonedListenerVector(cloneListener());
- std::for_each( aClonedListenerVector.begin(), aClonedListenerVector.end(),
- GenericEventNotifier(&IMailDispatcherListener::started, this) );
}
}
@@ -172,10 +168,6 @@ void MailDispatcher::stop()
m_bActive = false;
m_aWakeupCondition.reset();
thread_status_guard.clear();
-
- MailDispatcherListenerContainer_t aClonedListenerVector(cloneListener());
- std::for_each( aClonedListenerVector.begin(), aClonedListenerVector.end(),
- GenericEventNotifier(&IMailDispatcherListener::stopped, this) );
}
}
diff --git a/sw/source/uibase/inc/imaildsplistener.hxx b/sw/source/uibase/inc/imaildsplistener.hxx
index 1dcf2862d981..d995662fe758 100644
--- a/sw/source/uibase/inc/imaildsplistener.hxx
+++ b/sw/source/uibase/inc/imaildsplistener.hxx
@@ -38,16 +38,6 @@ class IMailDispatcherListener : public salhelper::SimpleReferenceObject
{
public:
/**
- Called when the MailDispatcher is started.
- */
- virtual void started(::rtl::Reference<MailDispatcher> xMailDispatcher) = 0;
-
- /**
- Called when the MailDispatcher is stopped.
- */
- virtual void stopped(::rtl::Reference<MailDispatcher> xMailDispatcher) = 0;
-
- /**
Called when there are no more mail messages
to deliver.
*/