From 57bd62a1fbd890d2bb546acea9c52dcb1e56a7ec Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 24 Jan 2018 21:06:25 -0500 Subject: Eliminate core_strdup (nw) --- src/lib/util/corestr.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/lib/util/corestr.cpp') diff --git a/src/lib/util/corestr.cpp b/src/lib/util/corestr.cpp index b9e56c5cdc5..a2fef33a87a 100644 --- a/src/lib/util/corestr.cpp +++ b/src/lib/util/corestr.cpp @@ -118,23 +118,6 @@ bool core_iswildstr(const char *sp) } -/*------------------------------------------------- - core_strdup - string duplication via malloc --------------------------------------------------*/ - -char *core_strdup(const char *str) -{ - char *cpy = nullptr; - if (str != nullptr) - { - cpy = (char *)malloc(strlen(str) + 1); - if (cpy != nullptr) - strcpy(cpy, str); - } - return cpy; -} - - /*------------------------------------------------- std::string helpers -------------------------------------------------*/ -- cgit v1.2.3-70-g09d2