mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
remove unused function
This commit is contained in:
committed by
majcosta
parent
1004ab6c8c
commit
272ba56fa1
@@ -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)
|
||||
{
|
||||
|
||||
@@ -1803,8 +1803,6 @@ BOOLEAN LoadItemProsAndCons( UINT16 usIndex, STR16 pProsString, STR16 pConsStrin
|
||||
BOOLEAN LoadBRDesc(UINT16 ubIndex, STR16 pDescString );
|
||||
BOOLEAN LoadBRName(UINT16 ubIndex, STR16 pNameString );
|
||||
|
||||
// sevenfm
|
||||
inline std::string narrow(std::wstring const& text);
|
||||
// convert UTF-8 string to wstring
|
||||
std::wstring utf8_to_wstring(const std::string& str);
|
||||
// convert wstring to UTF-8 string
|
||||
|
||||
Reference in New Issue
Block a user