Skip to content

Commit 1f7ebd8

Browse files
author
David Joyce
committed
Remove unused _WIN32 strdup
1 parent fc30255 commit 1f7ebd8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/coreclr/coreutils.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,6 @@ void AddFilesFromDirectoryToTpaList(const char* directory, char** tpaList);
3737

3838
const char* GetEnvValueBoolean(const char* envVariable);
3939

40-
#ifdef _WIN32
41-
char* strdup(const char* src)
42-
{
43-
size_t len = strlen(src) + 1;
44-
char* s = malloc(len);
45-
if (s == NULL)
46-
{
47-
return NULL;
48-
}
49-
return (char *)memcpy(s, src, len);
50-
}
51-
#endif
52-
5340
#if defined(__APPLE__)
5441
#include <mach-o/dyld.h>
5542
static const char * const coreClrDll = "libcoreclr.dylib";

0 commit comments

Comments
 (0)