diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-07-06 19:09:10 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-07-06 19:09:10 +0000 |
commit | 3c1e178085dca0f8e2d177f109f32002887691c3 (patch) | |
tree | e93d908e9315d8f31c53bd85e464f03b8c08bf93 /plugins/ContactsPlus/utils.cpp | |
parent | 2d65a57c8f992afc542baae1ed4f335fbb5e8302 (diff) |
removed some unneeded legacy code
git-svn-id: http://svn.miranda-ng.org/main/trunk@798 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus/utils.cpp')
-rw-r--r-- | plugins/ContactsPlus/utils.cpp | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/plugins/ContactsPlus/utils.cpp b/plugins/ContactsPlus/utils.cpp index aad17fe555..1838b3bea8 100644 --- a/plugins/ContactsPlus/utils.cpp +++ b/plugins/ContactsPlus/utils.cpp @@ -23,33 +23,6 @@ #include "contacts.h"
-int SRCCallProtoService(const char *szModule, const char *szService, WPARAM wParam, LPARAM lParam)
-{
- if (!g_NewProtoAPI)
- {
- char str[MAXMODULELABELLENGTH];
- strcpy(str,szModule);
- strcat(str,szService);
- return CallService(str,wParam,lParam);
- }
- return CallProtoService(szModule, szService, wParam, lParam);
-}
-
-int SRCCallContactService(HANDLE hContact, const char *szProtoService, WPARAM wParam, LPARAM lParam)
-{
- if (!g_NewProtoAPI)
- {
- CCSDATA ccs;
- ccs.hContact=hContact;
- ccs.szProtoService=szProtoService;
- ccs.wParam=wParam;
- ccs.lParam=lParam;
- return CallService(MS_PROTO_CALLCONTACTSERVICE,0,(LPARAM)&ccs);
- }
-
- return CallContactService(hContact, szProtoService, wParam, lParam);
-}
-
int utf8_decode(const unsigned char *from, char **to);
/* a strlennull() that likes NULL */
@@ -107,7 +80,7 @@ char *GetContactUID(HANDLE hContact, int bTchar) char *szUid = NULL;
char *szProto = GetContactProto(hContact);
- char *uid = (char*)SRCCallProtoService(szProto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0); // v0.3+ only
+ char *uid = (char*)CallProtoService(szProto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0); // v0.3+ only
if (((int)uid != CALLSERVICE_NOTFOUND) && uid)
{ // it worked, yeah :)
@@ -302,7 +275,7 @@ HICON LoadContactProtoIcon(HANDLE hContact) {
char* szProto = GetContactProto(hContact);
if (szProto)
- return (HICON)SRCCallProtoService(szProto, PS_LOADICON, PLI_PROTOCOL|PLIF_SMALL, 0);
+ return (HICON)CallProtoService(szProto, PS_LOADICON, PLI_PROTOCOL|PLIF_SMALL, 0);
return NULL;
}
|