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>
This commit is contained in:
Noel Grandin
2019-09-26 08:53:44 +02:00
parent aa7e7747f4
commit 464fe63e33
9 changed files with 0 additions and 48 deletions

View File

@@ -220,18 +220,9 @@ slideshow/source/inc/slide.hxx:118
svx/source/inc/docrecovery.hxx:162
void svx::DocRecovery::IRecoveryUpdateListener::start()
empty
sw/inc/IDocumentState.hxx:48
void IDocumentState::SetLoaded()
empty
sw/source/core/inc/swblocks.hxx:81
enum SwImpBlocks::FileType SwImpBlocks::GetFileType()const
3
sw/source/uibase/inc/imaildsplistener.hxx:43
void IMailDispatcherListener::started(class rtl::Reference<class MailDispatcher>,)
empty
sw/source/uibase/inc/imaildsplistener.hxx:48
void IMailDispatcherListener::stopped(class rtl::Reference<class MailDispatcher>,)
empty
vcl/inc/salframe.hxx:145
void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
empty

View File

@@ -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;

View File

@@ -113,10 +113,6 @@ void DocumentStateManager::SetUpdateExpFieldStat(bool b)
mbUpdateExpField = b;
}
void DocumentStateManager::SetLoaded()
{
}
}

View File

@@ -43,7 +43,6 @@ public:
bool IsNewDoc() const override;
void SetNewDoc(bool b) override;
void SetUpdateExpFieldStat(bool b) override;
void SetLoaded() override;
private:

View File

@@ -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();

View File

@@ -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;

View File

@@ -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>,

View File

@@ -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) );
}
}

View File

@@ -37,16 +37,6 @@ class MailDispatcher;
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.