From ab2e695163f8712cd9beb21ecf3be1714243479e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Mar 2017 11:09:12 +0300 Subject: unneeded function removed --- src/mir_app/src/srmm_toolbar.cpp | 14 +++++--------- 1 file 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(); } -- cgit v1.2.3