From a9fc5c1795cea571927f6ff4ceb8701ffe609ad4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 15 Jun 2013 18:20:03 +0000 Subject: removed not used async functions git-svn-id: http://svn.miranda-ng.org/main/trunk@4961 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_proto.h | 3 --- protocols/Skype/src/skype_utils.cpp | 23 ----------------------- 2 files changed, 26 deletions(-) diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index c8b5fd95dd..ff0971c4ea 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -365,7 +365,6 @@ protected: // utils static wchar_t* ValidationReasons[]; - static void FakeAsync(void*); void InitCustomFolders(); HANDLE m_hAvatarsFolder; @@ -403,8 +402,6 @@ protected: HANDLE CreateEvent(const char* szService); - DWORD SendBroadcastAsync(HANDLE hContact, int type, int hResult, HANDLE hProcess, LPARAM lParam, size_t paramSize = 0); - void ForkThread(SkypeThreadFunc, void*); HANDLE ForkThreadEx(SkypeThreadFunc, void*, UINT* threadID = NULL); diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp index f61b2b8afe..2c354210cb 100644 --- a/protocols/Skype/src/skype_utils.cpp +++ b/protocols/Skype/src/skype_utils.cpp @@ -279,13 +279,6 @@ HANDLE CSkypeProto::CreateEvent(const char* szService) return ::CreateHookableEvent(moduleName); } -void CSkypeProto::FakeAsync(void *param) -{ - ::Sleep(100); - ::CallService(MS_PROTO_BROADCASTACK, 0, (LPARAM)param); - ::mir_free(param); -} - int CSkypeProto::SendBroadcast(HANDLE hContact, int type, int result, HANDLE hProcess, LPARAM lParam) { return ::ProtoBroadcastAck(this->m_szModuleName, hContact, type, result, hProcess, lParam); @@ -296,22 +289,6 @@ int CSkypeProto::SendBroadcast(int type, int result, HANDLE hProcess, LPARAM lPa return this->SendBroadcast(NULL, type, result, hProcess, lParam); } -DWORD CSkypeProto::SendBroadcastAsync(HANDLE hContact, int type, int hResult, HANDLE hProcess, LPARAM lParam, size_t paramSize) -{ - ACKDATA *ack = (ACKDATA *)::mir_calloc(sizeof(ACKDATA) + paramSize); - ack->cbSize = sizeof(ACKDATA); - ack->szModule = this->m_szModuleName; - ack->hContact = hContact; - ack->type = type; - ack->result = hResult; - ack->hProcess = hProcess; - ack->lParam = lParam; - if (paramSize) - ::memcpy(ack+1, (void*)lParam, paramSize); - ::mir_forkthread(&CSkypeProto::FakeAsync, ack); - return 0; -} - void CSkypeProto::ForkThread(SkypeThreadFunc pFunc, void *param) { UINT threadID; -- cgit v1.2.3