diff --git a/src/platform-linux.cc b/src/platform-linux.cc index 46ca7dc68c..21aae3db0c 100644 --- a/src/platform-linux.cc +++ b/src/platform-linux.cc @@ -185,11 +185,6 @@ void OS::StrNCpy(Vector dest, const char* src, size_t n) { } -void OS::WcsCpy(Vector dest, const wchar_t* src) { - wcscpy(dest.start(), src); -} - - char *OS::StrDup(const char* str) { return strdup(str); } diff --git a/src/platform-macos.cc b/src/platform-macos.cc index e57f79de7f..f08d64d0c9 100644 --- a/src/platform-macos.cc +++ b/src/platform-macos.cc @@ -190,11 +190,6 @@ void OS::StrNCpy(Vector dest, const char* src, size_t n) { } -void OS::WcsCpy(Vector dest, const wchar_t* src) { - wcscpy(dest.start(), src); -} - - char *OS::StrDup(const char* str) { return strdup(str); } diff --git a/src/platform-win32.cc b/src/platform-win32.cc index 5260a7b146..43e88f34d6 100644 --- a/src/platform-win32.cc +++ b/src/platform-win32.cc @@ -685,13 +685,6 @@ void OS::StrNCpy(Vector dest, const char* src, size_t n) { } -void OS::WcsCpy(Vector dest, const wchar_t* src) { - int result = wcscpy_s(dest.start(), dest.length(), src); - USE(result); - ASSERT(result == 0); -} - - char *OS::StrDup(const char* str) { return _strdup(str); } diff --git a/src/platform.h b/src/platform.h index 7238d70250..cc44718fd0 100644 --- a/src/platform.h +++ b/src/platform.h @@ -205,7 +205,6 @@ class OS { va_list args); static void StrNCpy(Vector dest, const char* src, size_t n); - static void WcsCpy(Vector dest, const wchar_t* src); static char* StrDup(const char* str); // Support for profiler. Can do nothing, in which case ticks