From 026adc1f0c2e30b2e21ac66f1af8b32485bc9bf2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Mar 2017 19:09:17 +0300 Subject: more unused shit removed --- plugins/TabSRMM/src/msgs.cpp | 20 -------------------- plugins/TabSRMM/src/msgs.h | 6 ------ 2 files changed, 26 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index f81dfb194b..d83ae79efc 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -369,25 +369,6 @@ static INT_PTR Service_OpenTrayMenu(WPARAM, LPARAM lParam) return 0; } -///////////////////////////////////////////////////////////////////////////////////////// -// service function. retrieves the message window flags for a given hcontact or window -// wParam == hContact of the window to find -// lParam == window handle (set it to 0 if you want search for hcontact, otherwise it -// is directly used as the handle for the target window - -static INT_PTR GetMessageWindowFlags(WPARAM wParam, LPARAM lParam) -{ - HWND hwndTarget = (HWND)lParam; - if (hwndTarget == 0) - hwndTarget = M.FindWindow(wParam); - - if (hwndTarget == 0) - return 0; - - CSrmmWindow *dat = (CSrmmWindow*)GetWindowLongPtr(hwndTarget, GWLP_USERDATA); - return (dat) ? dat->m_dwFlags : 0; -} - ///////////////////////////////////////////////////////////////////////////////////////// // return the version of the window api supported @@ -1127,7 +1108,6 @@ static void TSAPI InitAPI() CreateServiceFunction(MS_TABMSG_TRAYSUPPORT, Service_OpenTrayMenu); CreateServiceFunction(MS_TABMSG_SLQMGR, CSendLater::svcQMgr); - CreateServiceFunction(MS_MSG_MOD_GETWINDOWFLAGS, GetMessageWindowFlags); CreateServiceFunction(MS_MSG_MOD_MESSAGEDIALOGOPENED, MessageWindowOpened); CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage); diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index 2e88f7615f..07597dbf75 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -1041,12 +1041,6 @@ struct TABSRMM_SessionInfo { //from the hContact. #define MS_MSG_MOD_MESSAGEDIALOGOPENED "SRMsg_MOD/MessageDialogOpened" -//obtain the message window flags -//wParam = hContact - ignored if lParam is given. -//lParam = hwnd -//returns MessageWindowData *dat, 0 if no window is found -#define MS_MSG_MOD_GETWINDOWFLAGS "SRMsg_MOD/GetWindowFlags" - // custom tabSRMM events #define tabMSG_WINDOW_EVT_CUSTOM_BEFORESEND 1 -- cgit v1.2.3