diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-11-02 15:57:14 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-11-05 09:16:42 +0000 |
commit | 20a2831ada983da53798c9df178f1e4c1a1896d8 (patch) | |
tree | 0761214644a5115a084b2cda8a944bb288e29f98 /src/Authoring/Client/Code/Core/Core | |
parent | 8350ef501cad977ca9426933e8f10dde33796f85 (diff) |
Remove unused dispatch event
Change-Id: Ia181b9d1bda360fddbf1e01568b009b0f406c33f
Reviewed-by: Janne Kangas <janne.kangas@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Client/Code/Core/Core')
-rw-r--r-- | src/Authoring/Client/Code/Core/Core/Dispatch.cpp | 11 | ||||
-rw-r--r-- | src/Authoring/Client/Code/Core/Core/Dispatch.h | 1 | ||||
-rw-r--r-- | src/Authoring/Client/Code/Core/Core/DispatchListeners.h | 10 |
3 files changed, 1 insertions, 21 deletions
diff --git a/src/Authoring/Client/Code/Core/Core/Dispatch.cpp b/src/Authoring/Client/Code/Core/Core/Dispatch.cpp index c445d680..4a1e0905 100644 --- a/src/Authoring/Client/Code/Core/Core/Dispatch.cpp +++ b/src/Authoring/Client/Code/Core/Core/Dispatch.cpp @@ -258,17 +258,6 @@ void CDispatch::FireOnLoadingPresentation(bool inIsSubPresentation /*= false */) inIsSubPresentation); } -//============================================================================= -/** - * Notify when a subpresentation has been loaded. - * Called if FireOnLoadingPresentation has been called earlier. - */ -void CDispatch::FireOnLoadedSubPresentation() -{ - m_PresentationChangeListeners.FireEvent(&CPresentationChangeListener::OnLoadedSubPresentation); -} - -//============================================================================= /** * Notify all the presentation change listeners that a new presentation was loaded. */ diff --git a/src/Authoring/Client/Code/Core/Core/Dispatch.h b/src/Authoring/Client/Code/Core/Core/Dispatch.h index 65cd51f9..e727af7f 100644 --- a/src/Authoring/Client/Code/Core/Core/Dispatch.h +++ b/src/Authoring/Client/Code/Core/Core/Dispatch.h @@ -131,7 +131,6 @@ public: void AddPresentationChangeListener(CPresentationChangeListener *inListener); void RemovePresentationChangeListener(CPresentationChangeListener *inListener); void FireOnLoadingPresentation(bool inIsSubPresentation = false); - void FireOnLoadedSubPresentation(); void FireOnNewPresentation(); void FireOnClosingPresentation(); void FireOnSavingPresentation(const QString &inNewPresentationFile); diff --git a/src/Authoring/Client/Code/Core/Core/DispatchListeners.h b/src/Authoring/Client/Code/Core/Core/DispatchListeners.h index 36f1d419..252464e3 100644 --- a/src/Authoring/Client/Code/Core/Core/DispatchListeners.h +++ b/src/Authoring/Client/Code/Core/Core/DispatchListeners.h @@ -140,7 +140,6 @@ class CPresentationChangeListener { public: virtual ~CPresentationChangeListener() {} - //========================================================================== /** * New presentation or subpresentation (e.g. subtree such as component or pasted object) is * being loaded. @@ -149,24 +148,17 @@ public: { Q_UNUSED(inIsSubPresentation); } - //========================================================================== - /** - * A subpresentation is loaded. - */ - virtual void OnLoadedSubPresentation() {} - //========================================================================== + /** * New presentation is being created. */ virtual void OnNewPresentation() {} - //========================================================================== /** * The current presentation is being closed. */ virtual void OnClosingPresentation() {} - //========================================================================== /** * The current presentation is being saved. */ |