commit e02c54b17db2fbd3e951115676be2bd4d2bf89cf
parent 8891b3c22890bbfc8e4b7c969aeaf5968e3f889a
Author: cfillion <cfillion@users.noreply.github.com>
Date: Mon, 6 Feb 2017 22:21:55 -0500
dialog: remove unused onShow and onHide events
Diffstat:
2 files changed, 2 insertions(+), 22 deletions(-)
diff --git a/src/dialog.cpp b/src/dialog.cpp
@@ -63,11 +63,6 @@ WDL_DLGRET Dialog::Proc(HWND handle, UINT msg, WPARAM wParam, LPARAM lParam)
// (destruction might be caused by the application exiting,
// in which case IsWindowVisible would be false but m_isVisible == true)
dlg->m_isVisible = wParam == 1;
-
- if(wParam)
- dlg->onShow();
- else
- dlg->onHide();
break;
case WM_TIMER:
dlg->onTimer((int)wParam);
@@ -98,13 +93,8 @@ WDL_DLGRET Dialog::Proc(HWND handle, UINT msg, WPARAM wParam, LPARAM lParam)
// When this happens, neither lParam nor s_instances will contain
// a pointer to the Dialog instance, so there is nothing we can do.
// At least, let's try to not crash.
- if(!dlg)
- break;
-
- if(dlg->isVisible())
- dlg->onHide();
-
- dlg->onClose();
+ if(dlg)
+ dlg->onClose();
break;
};
@@ -416,14 +406,6 @@ void Dialog::onInit()
m_resizer.init(m_handle);
}
-void Dialog::onShow()
-{
-}
-
-void Dialog::onHide()
-{
-}
-
void Dialog::onTimer(int)
{
}
diff --git a/src/dialog.hpp b/src/dialog.hpp
@@ -138,8 +138,6 @@ protected:
}
virtual void onInit();
- virtual void onShow();
- virtual void onHide();
virtual void onClose();
virtual void onTimer(int id);
virtual void onCommand(int id, int event);