Index: sandbox/src/sandbox_utils.cc |
=================================================================== |
--- sandbox/src/sandbox_utils.cc (revision 111826) |
+++ sandbox/src/sandbox_utils.cc (working copy) |
@@ -76,21 +76,4 @@ |
InitializeObjectAttributes(obj_attr, uni_name, attributes, root, NULL); |
} |
-std::string WideToMultiByte(const std::wstring& wide) { |
- if (wide.length() == 0) |
- return std::string(); |
- |
- // compute the length of the buffer we'll need |
- int charcount = WideCharToMultiByte(CP_UTF8, 0, wide.c_str(), -1, |
- NULL, 0, NULL, NULL); |
- if (charcount == 0) |
- return std::string(); |
- |
- std::string mb; |
- WideCharToMultiByte(CP_UTF8, 0, wide.c_str(), -1, |
- WriteInto(&mb, charcount), charcount, NULL, NULL); |
- |
- return mb; |
-} |
- |
}; // namespace sandbox |