1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Remove unused encoding_convert_unicode_to_rct2()

This commit is contained in:
Gymnasiast
2022-05-01 17:58:32 +02:00
parent 6fcfd481ab
commit 62d5a69051
2 changed files with 0 additions and 14 deletions

View File

@@ -120,16 +120,3 @@ wchar_t encoding_convert_rct2_to_unicode(wchar_t rct2str)
{
return encoding_convert_x_to_unicode(rct2str, RCT2ToUnicodeTable, std::size(RCT2ToUnicodeTable));
}
uint32_t encoding_convert_unicode_to_rct2(uint32_t unicode)
{
// Can't do a binary search as it's sorted by RCT2 code, not unicode
for (const auto& entry : RCT2ToUnicodeTable)
{
if (entry.unicode == unicode)
{
return entry.code;
}
}
return unicode;
}

View File

@@ -20,4 +20,3 @@ struct encoding_convert_entry
extern const encoding_convert_entry RCT2ToUnicodeTable[];
wchar_t encoding_convert_rct2_to_unicode(wchar_t rct2str);
uint32_t encoding_convert_unicode_to_rct2(uint32_t unicode);