From 2548065ebc5da2a8778cd4f49343b847773ee174 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Aug 2015 15:39:23 +0000 Subject: 'unreferenced formal parameter' warnings fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@14913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SimpleStatusMsg/src/awaymsg.cpp | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'plugins/SimpleStatusMsg/src/awaymsg.cpp') diff --git a/plugins/SimpleStatusMsg/src/awaymsg.cpp b/plugins/SimpleStatusMsg/src/awaymsg.cpp index 3d227992f2..20c14a01d6 100644 --- a/plugins/SimpleStatusMsg/src/awaymsg.cpp +++ b/plugins/SimpleStatusMsg/src/awaymsg.cpp @@ -30,31 +30,6 @@ with this program; if not, write to the Free Software Foundation, Inc., static HGENMENU hAwayMsgMenuItem, hCopyMsgMenuItem, hGoToURLMenuItem; static MWindowList hWindowList, hWindowList2; -static char *StrNormNewlineA(char *szStr) -{ - if (szStr == NULL) - return NULL; - - int nCR = 0; - for (int i = 0; szStr[i]; i++) - if (szStr[i] != 0x0D && szStr[i + 1] == 0x0A) - nCR++; - - if (!nCR) - return mir_strdup(szStr); - - char *szNewStr = (char *)mir_alloc(mir_strlen(szStr) + nCR + 1), *pszStr = szNewStr; - while (*szStr) { - if (*szStr == 0x0A) - *pszStr++ = 0x0D; - *pszStr++ = *szStr++; - } - *pszStr++ = 0; - - return szNewStr; -} - - static TCHAR *StrNormNewline(TCHAR *tszStr) { if (tszStr == NULL) @@ -339,7 +314,7 @@ static char *StrFindURL(char *pszStr) return pszURL; } -static INT_PTR GoToURLMsgCommand(WPARAM wParam, LPARAM lParam) +static INT_PTR GoToURLMsgCommand(WPARAM wParam, LPARAM) { ptrA szMsg(db_get_sa(wParam, "CList", "StatusMsg")); @@ -359,7 +334,7 @@ static INT_PTR GoToURLMsgCommand(WPARAM wParam, LPARAM lParam) return 0; } -static int AwayMsgPreBuildMenu(WPARAM hContact, LPARAM lParam) +static int AwayMsgPreBuildMenu(WPARAM hContact, LPARAM) { TCHAR str[128]; char *szProto = GetContactProto(hContact); -- cgit v1.2.3