summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-07 13:27:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-07 13:27:34 +0300
commite49e0826c1a628fdc4a55de09d09fde706f75193 (patch)
treecce376df45721f27976296ce8384166b254f03de
parente6edc1ba036f66f07878779d4d7a973c80d30efb (diff)
unused code removed
-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"&amp;", 5)) { *q = '&'; p += 4; }
- else if (!wcsncmp(p, L"&apos;", 6)) { *q = '\''; p += 5; }
- else if (!wcsncmp(p, L"&gt;", 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);