Commit 3fc91f93 authored by iposva@chromium.org's avatar iposva@chromium.org

Remove OS::WcsCpy from platform.h. This function is unused

and is giving us headaches on platforms not supporting wchar_t.

Review URL: http://codereview.chromium.org/11546

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@811 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3f0cc043
......@@ -185,11 +185,6 @@ void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) {
}
void OS::WcsCpy(Vector<wchar_t> dest, const wchar_t* src) {
wcscpy(dest.start(), src);
}
char *OS::StrDup(const char* str) {
return strdup(str);
}
......
......@@ -190,11 +190,6 @@ void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) {
}
void OS::WcsCpy(Vector<wchar_t> dest, const wchar_t* src) {
wcscpy(dest.start(), src);
}
char *OS::StrDup(const char* str) {
return strdup(str);
}
......
......@@ -685,13 +685,6 @@ void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) {
}
void OS::WcsCpy(Vector<wchar_t> 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);
}
......
......@@ -205,7 +205,6 @@ class OS {
va_list args);
static void StrNCpy(Vector<char> dest, const char* src, size_t n);
static void WcsCpy(Vector<wchar_t> dest, const wchar_t* src);
static char* StrDup(const char* str);
// Support for profiler. Can do nothing, in which case ticks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment