From 6ce1301c80786203fcfc2fbc46bbfae73842b6ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Mar 2017 18:44:27 +0300 Subject: hmm... another not-so-very-useful service --- include/m_message.h | 5 ----- plugins/Nudge/src/shake.cpp | 3 --- plugins/Scriver/src/msgs.cpp | 9 --------- plugins/TabSRMM/src/msgs.cpp | 12 ------------ src/core/stdmsg/src/msgs.cpp | 9 --------- 5 files changed, 38 deletions(-) diff --git a/include/m_message.h b/include/m_message.h index 477603abc0..a3cfee132e 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -77,11 +77,6 @@ typedef struct { // Sets a statusbar line text for the appropriate contact #define MS_MSG_SETSTATUSTEXT "MessageAPI/SetStatusText" -// wparam = (char*)szBuf -// lparam = (int)cbSize size of buffer -// Sets the window class name in wParam (ex. "SRMM" for srmm.dll) -#define MS_MSG_GETWINDOWCLASS "MessageAPI/WindowClass" - typedef struct { int cbSize; MCONTACT hContact; diff --git a/plugins/Nudge/src/shake.cpp b/plugins/Nudge/src/shake.cpp index 7ecb6d0463..2bce93d0e1 100644 --- a/plugins/Nudge/src/shake.cpp +++ b/plugins/Nudge/src/shake.cpp @@ -50,10 +50,7 @@ INT_PTR ShakeChat(WPARAM wParam, LPARAM) mwid.cbSize = sizeof(MessageWindowInputData); mwid.hContact = mwd.hContact; mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; - - CallService(MS_MSG_GETWINDOWDATA, (WPARAM)&mwid, (LPARAM)&mwd); - //CallService(MS_MSG_GETWINDOWCLASS,(WPARAM)srmmName,(LPARAM)100 ); HWND parent; HWND hWnd = mwd.hwndWindow; diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 42e3b6ee34..b8426c8924 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -283,14 +283,6 @@ static void RestoreUnreadMessageAlerts(void) } } -static INT_PTR GetWindowClass(WPARAM wParam, LPARAM lParam) -{ - char *szBuf = (char*)wParam; - size_t size = (size_t)lParam; - mir_snprintf(szBuf, size, "Scriver"); - return 0; -} - static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam) { MessageWindowInputData *mwid = (MessageWindowInputData*)wParam; @@ -646,7 +638,6 @@ int OnLoadModule(void) CreateServiceFunction(MS_MSG_SENDMESSAGE, SendMessageCommand); CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommandW); - CreateServiceFunction(MS_MSG_GETWINDOWCLASS, GetWindowClass); CreateServiceFunction(MS_MSG_GETWINDOWDATA, GetWindowData); CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText); CreateServiceFunction("SRMsg/ReadMessage", ReadMessageCommand); diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 62e3702bd0..f81dfb194b 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -59,17 +59,6 @@ int SmileyAddOptionsChanged(WPARAM, LPARAM) return 0; } -///////////////////////////////////////////////////////////////////////////////////////// -// Message API 0.0.0.3 services - -static INT_PTR GetWindowClass(WPARAM wParam, LPARAM lParam) -{ - char *szBuf = (char*)wParam; - size_t size = (size_t)lParam; - mir_snprintf(szBuf, size, "tabSRMM"); - return 0; -} - ///////////////////////////////////////////////////////////////////////////////////////// // wparam = (MessageWindowInputData*) // lparam = (MessageWindowData*) @@ -1129,7 +1118,6 @@ static void TSAPI InitAPI() { CreateServiceFunction(MS_MSG_SENDMESSAGE, SendMessageCommand); CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W); - CreateServiceFunction(MS_MSG_GETWINDOWCLASS, GetWindowClass); CreateServiceFunction(MS_MSG_GETWINDOWDATA, GetWindowData); CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText); diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index 214be6a766..79984e8a0b 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -477,14 +477,6 @@ static int PrebuildContactMenu(WPARAM hContact, LPARAM) return 0; } -static INT_PTR GetWindowClass(WPARAM wParam, LPARAM lParam) -{ - char *szBuf = (char*)wParam; - int size = (int)lParam; - mir_snprintf(szBuf, size, SRMMMOD); - return 0; -} - static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam) { HWND hwnd = WindowList_Find(pci->hWindowList, wParam); @@ -552,7 +544,6 @@ int LoadSendRecvMessageModule(void) CreateServiceFunction(MS_MSG_SENDMESSAGE, SendMessageCommand); CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W); - CreateServiceFunction(MS_MSG_GETWINDOWCLASS, GetWindowClass); CreateServiceFunction(MS_MSG_GETWINDOWDATA, GetWindowData); CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText); CreateServiceFunction("SRMsg/ReadMessage", ReadMessageCommand); -- cgit v1.2.3