From e4b8e9d9704a986c71565ef723cc8de208d97740 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Sep 2013 13:40:12 +0000 Subject: PROTO<>::SendAwayMsg / PSS_AWAYMSG considered unused git-svn-id: http://svn.miranda-ng.org/main/trunk@6229 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/protocols/protocols.cpp | 2 -- src/modules/protocols/protoint.cpp | 6 ------ 2 files changed, 8 deletions(-) (limited to 'src/modules') diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 23cda5cc42..4a61f457fe 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -486,7 +486,6 @@ INT_PTR CallProtoServiceInt(HANDLE hContact, const char *szModule, const char *s case 29: return (INT_PTR)ppi->SetStatus(wParam); case 30: return (INT_PTR)ppi->GetAwayMsg(hContact); case 31: return (INT_PTR)ppi->RecvAwayMsg(hContact, wParam, (PROTORECVEVENT*)lParam); - case 32: return (INT_PTR)ppi->SendAwayMsg(hContact, (HANDLE)wParam, (const char*)lParam); case 33: if (ppi->m_iVersion > 1) return (INT_PTR)ppi->SetAwayMsg(wParam, StrConvT((char*)lParam)); @@ -678,7 +677,6 @@ int LoadProtocolsModule(void) InsertServiceListItem(29, PS_SETSTATUS); InsertServiceListItem(30, PSS_GETAWAYMSG); InsertServiceListItem(31, PSR_AWAYMSG); - InsertServiceListItem(32, PSS_AWAYMSG); InsertServiceListItem(33, PS_SETAWAYMSG); InsertServiceListItem(34, PSS_USERISTYPING); InsertServiceListItem(35, PS_GETNAME); diff --git a/src/modules/protocols/protoint.cpp b/src/modules/protocols/protoint.cpp index 83c9d1dac5..abe590f541 100644 --- a/src/modules/protocols/protoint.cpp +++ b/src/modules/protocols/protoint.cpp @@ -252,12 +252,6 @@ struct DEFAULT_PROTO_INTERFACE : public PROTO_INTERFACE return (int)ProtoCallService(m_szModuleName, PSR_AWAYMSG, 0, (LPARAM)&ccs); } - int __cdecl SendAwayMsg(HANDLE hContact, HANDLE hProcess, const char* msg) - { - CCSDATA ccs = { hContact, PSS_AWAYMSG, (WPARAM)hProcess, (LPARAM)msg }; - return (int)ProtoCallService(m_szModuleName, PSS_AWAYMSG, 0, (LPARAM)&ccs); - } - int __cdecl SetAwayMsg(int iStatus, const TCHAR* msg) { return (int)ProtoCallService(m_szModuleName, PS_SETAWAYMSG, iStatus, (LPARAM)StrConvA(msg)); -- cgit v1.2.3