Skip to content

Commit 6c2edcf

Browse files
authored
Remove deprecated AsaApi::Tools functions (#12)
1 parent f4c07e2 commit 6c2edcf

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

AsaApi/Core/Private/Tools/Tools.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,6 @@ namespace AsaApi::Tools
1515
return std::string(buffer).substr(0, pos);
1616
}
1717

18-
[[deprecated]] std::wstring ConvertToWideStr(const std::string& text)
19-
{
20-
const size_t size = text.size();
21-
22-
std::wstring wstr;
23-
if (size > 0)
24-
{
25-
wstr.resize(size);
26-
27-
size_t converted_chars;
28-
mbstowcs_s(&converted_chars, wstr.data(), size + 1, text.c_str(), _TRUNCATE);
29-
}
30-
31-
return wstr;
32-
}
33-
34-
[[deprecated]] std::string ConvertToAnsiStr(const std::wstring& text)
35-
{
36-
const size_t length = text.size();
37-
38-
std::string str(length, '\0');
39-
std::use_facet<std::ctype<wchar_t>>(std::locale()).narrow(text.c_str(), text.c_str() + length, '?', str.data());
40-
41-
return str;
42-
}
43-
4418
std::string Utf8Encode(const std::wstring& wstr)
4519
{
4620
std::string converted_string;

AsaApi/Core/Public/Tools.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ namespace AsaApi::Tools
88
{
99
ARK_API std::string GetCurrentDir();
1010

11-
[[deprecated]] ARK_API std::wstring ConvertToWideStr(const std::string& text);
12-
[[deprecated]] ARK_API std::string ConvertToAnsiStr(const std::wstring& text);
13-
1411
/**
1512
* \brief Converts a wide Unicode string to an UTF8 string
1613
*/

0 commit comments

Comments
 (0)