summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/corestr.cpp')
-rw-r--r--src/lib/util/corestr.cpp17
1 files changed, 0 insertions, 17 deletions
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
@@ -119,23 +119,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
-------------------------------------------------*/