summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-25 11:09:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-25 11:09:12 +0300
commitab2e695163f8712cd9beb21ecf3be1714243479e (patch)
tree3f6929b7061f840d6a711c9133f2bed2f1de7a73 /src/mir_app
parente84e1506adf6f0b65bab0bc5e243f6497749b7c4 (diff)
unneeded function removed
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_toolbar.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp
index dd1c87c4fb..9f598d3f8c 100644
--- a/src/mir_app/src/srmm_toolbar.cpp
+++ b/src/mir_app/src/srmm_toolbar.cpp
@@ -389,14 +389,6 @@ MIR_APP_DLL(void) Srmm_RedrawToolbarIcons(HWND hwndDlg)
/////////////////////////////////////////////////////////////////////////////////////////
-static void CB_HardReInit()
-{
- WindowList_Broadcast(chatApi.hWindowList, WM_CBD_REMOVED, 0, 0);
-
- Srmm_ResetToolbar();
- NotifyEventHooks(hHookToolBarLoadedEvt, 0, 0);
-}
-
static void CB_ReInitCustomButtons()
{
for (int i = arButtonsList.getCount() - 1; i >= 0; i--) {
@@ -646,7 +638,11 @@ public:
void btnResetClicked(void*)
{
db_delete_module(0, MODULENAME);
- CB_HardReInit();
+ WindowList_Broadcast(chatApi.hWindowList, WM_CBD_REMOVED, 0, 0);
+
+ Srmm_ResetToolbar();
+ NotifyEventHooks(hHookToolBarLoadedEvt, 0, 0);
+
BuildMenuObjectsTree();
NotifyChange();
}