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:
@@ -220,18 +220,9 @@ slideshow/source/inc/slide.hxx:118
|
|||||||
svx/source/inc/docrecovery.hxx:162
|
svx/source/inc/docrecovery.hxx:162
|
||||||
void svx::DocRecovery::IRecoveryUpdateListener::start()
|
void svx::DocRecovery::IRecoveryUpdateListener::start()
|
||||||
empty
|
empty
|
||||||
sw/inc/IDocumentState.hxx:48
|
|
||||||
void IDocumentState::SetLoaded()
|
|
||||||
empty
|
|
||||||
sw/source/core/inc/swblocks.hxx:81
|
sw/source/core/inc/swblocks.hxx:81
|
||||||
enum SwImpBlocks::FileType SwImpBlocks::GetFileType()const
|
enum SwImpBlocks::FileType SwImpBlocks::GetFileType()const
|
||||||
3
|
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
|
vcl/inc/salframe.hxx:145
|
||||||
void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
|
void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
|
||||||
empty
|
empty
|
||||||
|
@@ -45,8 +45,6 @@ public:
|
|||||||
|
|
||||||
virtual void SetUpdateExpFieldStat(bool b) = 0;
|
virtual void SetUpdateExpFieldStat(bool b) = 0;
|
||||||
|
|
||||||
virtual void SetLoaded() = 0;
|
|
||||||
|
|
||||||
virtual bool IsEnableSetModified() const = 0;
|
virtual bool IsEnableSetModified() const = 0;
|
||||||
virtual void SetEnableSetModified(bool bEnableSetModified) = 0;
|
virtual void SetEnableSetModified(bool bEnableSetModified) = 0;
|
||||||
|
|
||||||
|
@@ -113,10 +113,6 @@ void DocumentStateManager::SetUpdateExpFieldStat(bool b)
|
|||||||
mbUpdateExpField = b;
|
mbUpdateExpField = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DocumentStateManager::SetLoaded()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -43,7 +43,6 @@ public:
|
|||||||
bool IsNewDoc() const override;
|
bool IsNewDoc() const override;
|
||||||
void SetNewDoc(bool b) override;
|
void SetNewDoc(bool b) override;
|
||||||
void SetUpdateExpFieldStat(bool b) override;
|
void SetUpdateExpFieldStat(bool b) override;
|
||||||
void SetLoaded() override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@@ -346,7 +346,6 @@ ErrCode SwReader::Read( const Reader& rOptions )
|
|||||||
mxDoc->UpdateNumRule();
|
mxDoc->UpdateNumRule();
|
||||||
mxDoc->ChkCondColls();
|
mxDoc->ChkCondColls();
|
||||||
mxDoc->SetAllUniqueFlyNames();
|
mxDoc->SetAllUniqueFlyNames();
|
||||||
mxDoc->getIDocumentState().SetLoaded();
|
|
||||||
// Clear unassigned cell styles, because they aren't needed anymore.
|
// Clear unassigned cell styles, because they aren't needed anymore.
|
||||||
mxDoc->GetCellStyles().clear();
|
mxDoc->GetCellStyles().clear();
|
||||||
|
|
||||||
|
@@ -122,8 +122,6 @@ class SwMailDispatcherListener_Impl : public IMailDispatcherListener
|
|||||||
public:
|
public:
|
||||||
explicit SwMailDispatcherListener_Impl(SwSendMailDialog& rParentDlg);
|
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 idle(::rtl::Reference<MailDispatcher> xMailDispatcher) override;
|
||||||
virtual void mailDelivered(::rtl::Reference<MailDispatcher> xMailDispatcher,
|
virtual void mailDelivered(::rtl::Reference<MailDispatcher> xMailDispatcher,
|
||||||
uno::Reference< mail::XMailMessage> xMailMessage) override;
|
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*/)
|
void SwMailDispatcherListener_Impl::idle(::rtl::Reference<MailDispatcher> /*xMailDispatcher*/)
|
||||||
{
|
{
|
||||||
SolarMutexGuard aGuard;
|
SolarMutexGuard aGuard;
|
||||||
|
@@ -1080,8 +1080,6 @@ public:
|
|||||||
explicit MailDispatcherListener_Impl( SwDBManager &rDBManager )
|
explicit MailDispatcherListener_Impl( SwDBManager &rDBManager )
|
||||||
: m_rDBManager( 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 idle( ::rtl::Reference<MailDispatcher> ) override {};
|
||||||
|
|
||||||
virtual void mailDelivered( ::rtl::Reference<MailDispatcher>,
|
virtual void mailDelivered( ::rtl::Reference<MailDispatcher>,
|
||||||
|
@@ -152,10 +152,6 @@ void MailDispatcher::start()
|
|||||||
m_bActive = true;
|
m_bActive = true;
|
||||||
m_aWakeupCondition.set();
|
m_aWakeupCondition.set();
|
||||||
thread_status_guard.clear();
|
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_bActive = false;
|
||||||
m_aWakeupCondition.reset();
|
m_aWakeupCondition.reset();
|
||||||
thread_status_guard.clear();
|
thread_status_guard.clear();
|
||||||
|
|
||||||
MailDispatcherListenerContainer_t aClonedListenerVector(cloneListener());
|
|
||||||
std::for_each( aClonedListenerVector.begin(), aClonedListenerVector.end(),
|
|
||||||
GenericEventNotifier(&IMailDispatcherListener::stopped, this) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -37,16 +37,6 @@ class MailDispatcher;
|
|||||||
class IMailDispatcherListener : public salhelper::SimpleReferenceObject
|
class IMailDispatcherListener : public salhelper::SimpleReferenceObject
|
||||||
{
|
{
|
||||||
public:
|
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
|
Called when there are no more mail messages
|
||||||
to deliver.
|
to deliver.
|
||||||
|
Reference in New Issue
Block a user