From d3392e7f50f57dad8bd753f914915835942898ef Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 3 Feb 2009 18:15:56 +0000 Subject: [PATCH] Remove this unused definition of strcasestr() No idea why we provide this definition for __sun (solaris?), but it doesn't look like anything uses this and we don't compile on those weird boxes anyway. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1365 726aef4b-f618-498e-8847-2d620e286838 --- Utils.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/Utils.cpp b/Utils.cpp index ccdbccb5..994b0096 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -29,29 +29,6 @@ bool CUtils::stdoutIsTTY; CUtils::CUtils() {} CUtils::~CUtils() {} -#ifdef __sun -char *strcasestr(const char *big, const char *little) { - int len; - - if (!little || !big || !little[0]) { - return (char *) big; - } - - len = strlen(little); - while (*big) { - if (tolower(*big) == tolower(*little)) { - if (strncasecmp(big, little, len) == 0) { - return (char *) big; - } - } - - big++; - } - - return NULL; -} -#endif /* __sun */ - #ifdef HAVE_LIBSSL void CUtils::GenerateCert(FILE *pOut, bool bEncPrivKey, const CString& sHost) { EVP_PKEY *pKey = NULL;