From e26440954f80b88d374559ab7f33821e8c78aa1e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Jul 2012 19:32:56 +0000 Subject: another code simplification git-svn-id: http://svn.miranda-ng.org/main/trunk@1170 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/utils.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'plugins/Import/src/utils.cpp') diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp index 69489ca087..522a987e02 100644 --- a/plugins/Import/src/utils.cpp +++ b/plugins/Import/src/utils.cpp @@ -53,27 +53,6 @@ HANDLE HContactFromNumericID(char* pszProtoName, char* pszSetting, DWORD dwID) return INVALID_HANDLE_VALUE; } -HANDLE HContactFromID(char* pszProtoName, char* pszSetting, char* pszID) -{ - DBVARIANT dbv; - HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); - while (hContact != NULL) { - char* szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - if ( !lstrcmpA(szProto, pszProtoName)) { - if (DBGetContactSettingString(hContact, pszProtoName, pszSetting, &dbv) == 0) { - if (strcmp(pszID, dbv.pszVal) == 0) { - DBFreeVariant(&dbv); - return hContact; - } - DBFreeVariant(&dbv); - } - } - - hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM)hContact, 0); - } - return INVALID_HANDLE_VALUE; -} - HANDLE HistoryImportFindContact(HWND hdlgProgress, char* szModuleName, DWORD uin, int addUnknown) { HANDLE hContact = HContactFromNumericID(szModuleName, "UIN", uin); -- cgit v1.2.3