From c181af64bab27eb50e684c64c0a3caa49f8bbe39 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Jul 2013 18:56:00 +0000 Subject: protocol helpers, beginning git-svn-id: http://svn.miranda-ng.org/main/trunk@5285 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/protocols/protocols.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/modules') diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 426bf039fb..14abba9059 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -622,28 +622,6 @@ INT_PTR CallProtoServiceInt(HANDLE hContact, const char *szModule, const char *s ///////////////////////////////////////////////////////////////////////////////////////// -static INT_PTR srvProtoConstructor(WPARAM wParam, LPARAM lParam) -{ - PROTO_INTERFACE *ppi = (PROTO_INTERFACE*)wParam; - LPCSTR szProtoName = (LPCSTR)lParam; - - ppi->m_iVersion = 2; - ppi->m_iStatus = ppi->m_iDesiredStatus = ID_STATUS_OFFLINE; - ppi->m_szModuleName = mir_strdup(szProtoName); - ppi->m_hProtoIcon = (HANDLE)CallService(MS_SKIN2_ISMANAGEDICON, (WPARAM)LoadSkinnedProtoIcon(szProtoName, ID_STATUS_ONLINE), 0); - return 0; -} - -static INT_PTR srvProtoDestructor(WPARAM wParam, LPARAM) -{ - PROTO_INTERFACE *ppi = (PROTO_INTERFACE*)wParam; - mir_free(ppi->m_szModuleName); - mir_free(ppi->m_tszUserName); - return 0; -} - -///////////////////////////////////////////////////////////////////////////////////////// - static void InsertServiceListItem(int id, const char* szName) { TServiceListItem* p = (TServiceListItem*)mir_alloc(sizeof(TServiceListItem)); @@ -724,9 +702,6 @@ int LoadProtocolsModule(void) CreateServiceFunction(MS_PROTO_ENUMACCOUNTS, Proto_EnumAccounts); CreateServiceFunction(MS_PROTO_GETACCOUNT, srvProto_GetAccount); - CreateServiceFunction("Proto/Constructor", srvProtoConstructor); - CreateServiceFunction("Proto/Destructor", srvProtoDestructor); - CreateServiceFunction(MS_PROTO_ISACCOUNTENABLED, srvProto_IsAccountEnabled); CreateServiceFunction(MS_PROTO_ISACCOUNTLOCKED, srvProto_IsAccountLocked); -- cgit v1.2.3