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 --- plugins/Nudge/src/shake.cpp | 3 --- plugins/Scriver/src/msgs.cpp | 9 --------- plugins/TabSRMM/src/msgs.cpp | 12 ------------ 3 files changed, 24 deletions(-) (limited to 'plugins') 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); -- cgit v1.2.3