From aefca653e36f688b6bed627019ba737430b53f52 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Mar 2017 13:23:24 +0300 Subject: further code cleaning --- plugins/TabSRMM/src/utils.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'plugins/TabSRMM/src/utils.cpp') diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp index 5b28e57a1b..6d6d2d2dc5 100644 --- a/plugins/TabSRMM/src/utils.cpp +++ b/plugins/TabSRMM/src/utils.cpp @@ -840,31 +840,6 @@ wchar_t* Utils::extractURLFromRichEdit(const ENLINK* _e, const HWND hwndRich) return tr.lpstrText; } -///////////////////////////////////////////////////////////////////////////////////////// -// generic command dispatcher -// used in various places (context menus, info panel menus etc.) - -LRESULT Utils::CmdDispatcher(UINT uType, HWND hwndDlg, UINT cmd, WPARAM wParam, LPARAM lParam, CTabBaseDlg *dat, TContainerData *pContainer) -{ - switch (uType) { - case CMD_CONTAINER: - if (pContainer && hwndDlg) - return DM_ContainerCmdHandler(pContainer, cmd, wParam, lParam); - break; - - case CMD_MSGDIALOG: - if (pContainer && hwndDlg && dat) - return DM_MsgWindowCmdHandler(hwndDlg, pContainer, dat, cmd, wParam, lParam); - break; - - case CMD_INFOPANEL: - if (dat->MsgWindowMenuHandler(cmd, MENU_LOGMENU) == 0) - return DM_MsgWindowCmdHandler(hwndDlg, pContainer, dat, cmd, wParam, lParam); - break; - } - return 0; -} - ///////////////////////////////////////////////////////////////////////////////////////// // filters out invalid characters from a string used as part of a file // or folder name. All invalid characters will be replaced by spaces. -- cgit v1.2.3