summaryrefslogtreecommitdiff
path: root/src/modules/protocols/protoaccs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-01 18:10:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-01 18:10:32 +0000
commit2bb514f4195c99b52e0ec748c975c0fd30dbbd25 (patch)
treee7325f314a828e1233b89ef688e6e52a8846925a /src/modules/protocols/protoaccs.cpp
parenta59538975c7fef04bcbf9e62b81c78753ac2a16c (diff)
another bunch of dead crutches: non-unicode avatar services
git-svn-id: http://svn.miranda-ng.org/main/trunk@13961 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/protocols/protoaccs.cpp')
-rw-r--r--src/modules/protocols/protoaccs.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/modules/protocols/protoaccs.cpp b/src/modules/protocols/protoaccs.cpp
index 5e29c13b12..42e27aba15 100644
--- a/src/modules/protocols/protoaccs.cpp
+++ b/src/modules/protocols/protoaccs.cpp
@@ -291,45 +291,6 @@ int LoadAccountsModule(void)
/////////////////////////////////////////////////////////////////////////////////////////
-static INT_PTR stub43(PROTO_INTERFACE* ppi, WPARAM wParam, LPARAM lParam)
-{
- PROTO_AVATAR_INFORMATION* p = (PROTO_AVATAR_INFORMATION*)lParam;
-
- PROTO_AVATAR_INFORMATIONW tmp = { 0 };
- tmp.cbSize = sizeof(tmp);
- tmp.hContact = p->hContact;
- int result = CallProtoServiceInt(NULL, ppi->m_szModuleName, PS_GETAVATARINFOW, wParam, (LPARAM)&tmp);
-
- p->format = tmp.format;
-
- wchar_t filename[MAX_PATH];
- mir_wstrcpy(filename, tmp.filename);
- GetShortPathNameW(tmp.filename, filename, SIZEOF(filename));
-
- WideCharToMultiByte(CP_ACP, 0, filename, -1, p->filename, MAX_PATH, 0, 0);
- return result;
-}
-
-static INT_PTR stub44(PROTO_INTERFACE* ppi, WPARAM wParam, LPARAM lParam)
-{
- wchar_t* buf = (wchar_t*)_alloca(sizeof(wchar_t) * (lParam + 1));
- int result = CallProtoServiceInt(NULL, ppi->m_szModuleName, PS_GETMYAVATARW, WPARAM(buf), lParam);
- if (result == 0) {
- wchar_t* filename = (wchar_t*)_alloca(sizeof(wchar_t) * (lParam + 1));
- mir_wstrcpy(filename, buf);
- GetShortPathNameW(buf, filename, lParam + 1);
-
- WideCharToMultiByte(CP_ACP, 0, filename, -1, (char*)wParam, lParam, 0, 0);
- }
-
- return result;
-}
-
-static INT_PTR stub45(PROTO_INTERFACE* ppi, WPARAM wParam, LPARAM lParam)
-{
- return CallProtoServiceInt(NULL, ppi->m_szModuleName, PS_SETMYAVATARW, wParam, _A2T((char*)lParam));
-}
-
static HANDLE CreateProtoServiceEx(const char* szModule, const char* szService, MIRANDASERVICEOBJ pFunc, void* param)
{
char tmp[100];
@@ -352,19 +313,6 @@ BOOL ActivateAccount(PROTOACCOUNT *pa)
pa->ppro = ppi;
ppi->m_iDesiredStatus = ppi->m_iStatus = ID_STATUS_OFFLINE;
-
- if (!ProtoServiceExists(pa->szModuleName, PS_GETAVATARINFO))
- if (ProtoServiceExists(pa->szModuleName, PS_GETAVATARINFOW))
- CreateProtoServiceEx(pa->szModuleName, PS_GETAVATARINFO, (MIRANDASERVICEOBJ)stub43, pa->ppro);
-
- if (!ProtoServiceExists(pa->szModuleName, PS_GETMYAVATAR))
- if (ProtoServiceExists(pa->szModuleName, PS_GETMYAVATARW))
- CreateProtoServiceEx(pa->szModuleName, PS_GETMYAVATAR, (MIRANDASERVICEOBJ)stub44, pa->ppro);
-
- if (!ProtoServiceExists(pa->szModuleName, PS_SETMYAVATAR))
- if (ProtoServiceExists(pa->szModuleName, PS_SETMYAVATARW))
- CreateProtoServiceEx(pa->szModuleName, PS_SETMYAVATAR, (MIRANDASERVICEOBJ)stub45, pa->ppro);
-
return TRUE;
}