From 1b9f36054bddeef87d4f9c139877d28c4e6b1702 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 1 Sep 2015 15:17:39 +0000 Subject: - strdel()/strdelw() moved to the core; - custom implementations removed git-svn-id: http://svn.miranda-ng.org/main/trunk@15135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/irclib.cpp | 9 --------- protocols/JabberG/src/jabber_util.cpp | 9 --------- protocols/JabberG/src/stdafx.h | 4 ---- 3 files changed, 22 deletions(-) (limited to 'protocols') diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp index 8b40818a9e..8c19c1c7b3 100644 --- a/protocols/IRCG/src/irclib.cpp +++ b/protocols/IRCG/src/irclib.cpp @@ -1390,15 +1390,6 @@ void DoIncomingDcc(HANDLE hConnection, DWORD dwRemoteIP, void * p1) // ident server -void strdel(char* parBuffer, int len) -{ - char *p; - for (p = parBuffer + len; *p != 0; p++) - p[-len] = *p; - - p[-len] = '\0'; -} - void DoIdent(HANDLE hConnection, DWORD, void* extra) { CIrcProto *ppro = (CIrcProto*)extra; diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 77534292f5..1e671818ea 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -134,15 +134,6 @@ TCHAR* JabberPrepareJid(LPCTSTR jid) return szNewJid; } -void strdel(char* parBuffer, int len) -{ - char* p; - for (p = parBuffer + len; *p != 0; p++) - p[-len] = *p; - - p[-len] = '\0'; -} - void __stdcall JabberUrlDecodeW(WCHAR *str) { if (str == NULL) diff --git a/protocols/JabberG/src/stdafx.h b/protocols/JabberG/src/stdafx.h index bab4c80f57..5645dc0090 100644 --- a/protocols/JabberG/src/stdafx.h +++ b/protocols/JabberG/src/stdafx.h @@ -759,10 +759,6 @@ bool JabberReadXep203delay(HXML node, time_t &msgTime); int UIEmulateBtnClick(HWND hwndDlg, UINT idcButton); void UIShowControls(HWND hwndDlg, int *idList, int nCmdShow); -//---- jabber_xml.cpp ------------------------------------------------------------------- - -void strdel(char* parBuffer, int len); - //---- jabber_userinfo.cpp -------------------------------------------------------------- void JabberUserInfoUpdate(MCONTACT hContact); -- cgit v1.2.3