summaryrefslogtreecommitdiff
path: root/protocols/Weather/weather_conv.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-30 13:03:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-30 13:03:49 +0000
commit2b5aaa321425c6309ed912f04badd79e27e9549e (patch)
tree80172d95527460896e138db326bc4125c907b124 /protocols/Weather/weather_conv.cpp
parentb947df9fed0907995842d4c7121157508feac65e (diff)
further cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@231 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Weather/weather_conv.cpp')
-rw-r--r--protocols/Weather/weather_conv.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/protocols/Weather/weather_conv.cpp b/protocols/Weather/weather_conv.cpp
index 1cf003e8e2..2bad50f0fa 100644
--- a/protocols/Weather/weather_conv.cpp
+++ b/protocols/Weather/weather_conv.cpp
@@ -642,21 +642,3 @@ TCHAR *GetError(int code)
}
return str;
}
-
-LPWSTR ConvToUnicode(LPCSTR str2)
-{
- const size_t nLength = MultiByteToWideChar(lpcp, 0, str2, -1, NULL, 0);
- LPWSTR res = ( LPWSTR )mir_alloc(sizeof(WCHAR)*nLength);
- MultiByteToWideChar(lpcp, 0, str2, -1, res, (int)nLength);
- return res;
-}
-
-unsigned lpcp;
-
-void InitUniConv(void)
-{
- lpcp = (unsigned)CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
- if (lpcp == CALLSERVICE_NOTFOUND || lpcp == GetUserDefaultLangID())
- lpcp = CP_ACP;
-}
-