From 62d5a69051afda577ea5884babad40d5639e5c43 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 1 May 2022 17:58:32 +0200 Subject: [PATCH] Remove unused encoding_convert_unicode_to_rct2() --- src/openrct2/localisation/ConversionTables.cpp | 13 ------------- src/openrct2/localisation/ConversionTables.h | 1 - 2 files changed, 14 deletions(-) diff --git a/src/openrct2/localisation/ConversionTables.cpp b/src/openrct2/localisation/ConversionTables.cpp index 445ce2f236..6aa142a0b4 100644 --- a/src/openrct2/localisation/ConversionTables.cpp +++ b/src/openrct2/localisation/ConversionTables.cpp @@ -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; -} diff --git a/src/openrct2/localisation/ConversionTables.h b/src/openrct2/localisation/ConversionTables.h index 88300573d5..1e6941e919 100644 --- a/src/openrct2/localisation/ConversionTables.h +++ b/src/openrct2/localisation/ConversionTables.h @@ -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);