From 6c4d35fca373a55252f4bce0bd0102f78eb67037 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 17 Jun 2013 21:57:16 +0000 Subject: ProtoServiceExists moved to mir_core all another copies of it removed git-svn-id: http://svn.miranda-ng.org/main/trunk@5006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/main.cpp | 13 ------------- plugins/AVS/src/options.cpp | 1 - 2 files changed, 14 deletions(-) (limited to 'plugins/AVS') diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index a0ee6d8b63..3f03247a9a 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -107,19 +107,8 @@ extern INT_PTR CALLBACK DlgProcAvatarOptions(HWND hwndDlg, UINT msg, WPARAM wPar extern INT_PTR CALLBACK DlgProcAvatarUserInfo(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); extern INT_PTR CALLBACK DlgProcAvatarProtoInfo(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); - static int SetProtoMyAvatar(char *protocol, HBITMAP hBmp, TCHAR *originalFilename, int format, BOOL square, BOOL grow); -// See if a protocol service exists -int ProtoServiceExists(const char *szModule,const char *szService) -{ - char str[MAXMODULELABELLENGTH * 2]; - strcpy(str,szModule); - strcat(str,szService); - return ServiceExists(str); -} - - /* * output a notification message. * may accept a hContact to include the contacts nickname in the notification message... @@ -2467,8 +2456,6 @@ return = 1 (supported) or 0 (not supported) */ #define PS_ISAVATARFORMATSUPPORTED "/IsAvatarFormatSupported" - - BOOL Proto_IsAvatarsEnabled(const char *proto) { if (ProtoServiceExists(proto, PS_GETAVATARCAPS)) diff --git a/plugins/AVS/src/options.cpp b/plugins/AVS/src/options.cpp index f151f8c370..3120f43d60 100644 --- a/plugins/AVS/src/options.cpp +++ b/plugins/AVS/src/options.cpp @@ -43,7 +43,6 @@ extern void DeleteAvatarFromCache(HANDLE, BOOL); extern HBITMAP LoadPNG(struct avatarCacheEntry *ace, char *szFilename); extern HANDLE GetContactThatHaveTheAvatar(HANDLE hContact, int locked = -1); -extern int ProtoServiceExists(const char *szModule,const char *szService); extern BOOL Proto_IsAvatarsEnabled(const char *proto); extern BOOL ScreenToClient(HWND hWnd, LPRECT lpRect); -- cgit v1.2.3