summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprotocols/JabberG/src/jabber_util.cpp22
-rwxr-xr-xprotocols/JabberG/src/stdafx.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index 873c33ef72..91c477275f 100755
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -116,28 +116,6 @@ wchar_t* JabberPrepareJid(const wchar_t *jid)
return szNewJid;
}
-void __stdcall JabberUrlDecodeW(WCHAR *str)
-{
- if (str == nullptr)
- return;
-
- WCHAR *p, *q;
- for (p = q = str; *p != '\0'; p++, q++) {
- if (*p == '&') {
- if (!wcsncmp(p, L"&", 5)) { *q = '&'; p += 4; }
- else if (!wcsncmp(p, L"'", 6)) { *q = '\''; p += 5; }
- else if (!wcsncmp(p, L">", 4)) { *q = '>'; p += 3; }
- else if (!wcsncmp(p, L"&lt;", 4)) { *q = '<'; p += 3; }
- else if (!wcsncmp(p, L"&quot;", 6)) { *q = '"'; p += 5; }
- else { *q = *p; }
- }
- else {
- *q = *p;
- }
- }
- *q = '\0';
-}
-
char* __stdcall JabberSha1(const char *str, JabberShaStrBuf buf)
{
BYTE digest[MIR_SHA1_HASH_SIZE];
diff --git a/protocols/JabberG/src/stdafx.h b/protocols/JabberG/src/stdafx.h
index 105e805d61..a6afbd23ea 100755
--- a/protocols/JabberG/src/stdafx.h
+++ b/protocols/JabberG/src/stdafx.h
@@ -721,7 +721,6 @@ typedef char JabberShaStrBuf[2*MIR_SHA1_HASH_SIZE + 1];
wchar_t* __stdcall JabberNickFromJID(const wchar_t *jid);
wchar_t* JabberPrepareJid(const wchar_t *jid);
-void __stdcall JabberUrlDecodeW(WCHAR *str);
char* __stdcall JabberSha1(const char *str, JabberShaStrBuf buf);
wchar_t* __stdcall JabberStrFixLines(const wchar_t *str);
void __stdcall JabberHttpUrlDecode(wchar_t *str);