remove unused function

This commit is contained in:
Marco Antonio J. Costa
2025-08-30 18:48:16 -03:00
committed by majcosta
parent 1004ab6c8c
commit 272ba56fa1
2 changed files with 0 additions and 13 deletions
-11
View File
@@ -388,17 +388,6 @@ void ParseCommandLine (
++*numargs;
}
inline std::string narrow(std::wstring const& text)
{
std::locale const loc("");
wchar_t const* from = text.c_str();
std::size_t const len = text.size();
std::vector<char> buffer(len + 1);
std::use_facet<std::ctype<wchar_t> >(loc).narrow(from, from + len, '_', &buffer[0]);
return std::string(&buffer[0], &buffer[len]);
}
// convert UTF-8 string to wstring
std::wstring utf8_to_wstring(const std::string& str)
{