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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user