diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-28 13:49:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-28 13:49:29 +0000 |
commit | ebd906de0e8aef7d33ccb2b4f81ad53dfb796fcf (patch) | |
tree | e2a72649284a5388375df090db0cb8d9e2e76481 /protocols/JabberG/src/jabber_util.cpp | |
parent | 1ab65d264fee46914571415551ed78cde14315a6 (diff) |
more code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@12536 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 5ca0204854..61522beadd 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -208,58 +208,6 @@ TCHAR* __stdcall JabberStrFixLines(const TCHAR *str) return buf;
}
-char* __stdcall JabberUnixToDos(const char* str)
-{
- char* p, *q, *res;
- int extra;
-
- if (str == NULL || str[0] == '\0')
- return NULL;
-
- extra = 0;
- for (p = (char*)str; *p != '\0'; p++) {
- if (*p == '\n')
- extra++;
- }
- if ((res = (char*)mir_alloc(strlen(str) + extra + 1)) != NULL) {
- for (p = (char*)str, q = res; *p != '\0'; p++, q++) {
- if (*p == '\n') {
- *q = '\r';
- q++;
- }
- *q = *p;
- }
- *q = '\0';
- }
- return res;
-}
-
-WCHAR* __stdcall JabberUnixToDosW(const WCHAR* str)
-{
- if (str == NULL || str[0] == '\0')
- return NULL;
-
- const WCHAR* p;
- WCHAR* q, *res;
- int extra = 0;
-
- for (p = str; *p != '\0'; p++)
- if (*p == '\n')
- extra++;
-
- if ((res = (WCHAR*)mir_alloc(sizeof(WCHAR)*(wcslen(str) + extra + 1))) != NULL) {
- for (p = str, q = res; *p != '\0'; p++, q++) {
- if (*p == '\n') {
- *q = '\r';
- q++;
- }
- *q = *p;
- }
- *q = '\0';
- }
- return res;
-}
-
void __stdcall JabberHttpUrlDecode(TCHAR *str)
{
TCHAR *p, *q;
|