From 7be1cb630d567fa82365be15b3adf004ce38d516 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Fri, 12 Jul 2024 23:11:38 +0200 Subject: [PATCH] Remove gDebugStringFormatting global --- src/openrct2/localisation/Localisation.cpp | 13 ------------- src/openrct2/localisation/Localisation.h | 1 - 2 files changed, 14 deletions(-) diff --git a/src/openrct2/localisation/Localisation.cpp b/src/openrct2/localisation/Localisation.cpp index f978ec06fe..6b6c5e3d94 100644 --- a/src/openrct2/localisation/Localisation.cpp +++ b/src/openrct2/localisation/Localisation.cpp @@ -28,12 +28,6 @@ using namespace OpenRCT2; thread_local char gCommonStringFormatBuffer[CommonTextBufferSize]; -#ifdef DEBUG -// Set to true before a string format call to see details of the formatting. -// Set to false after the call. -bool gDebugStringFormatting = false; -#endif - // clang-format off const StringId ObjectiveNames[] = { STR_OBJECTIVE_NONE, @@ -289,13 +283,6 @@ std::string FormatStringIDLegacy(StringId format, const void* args) */ void FormatStringToUpper(utf8* dest, size_t size, StringId format, const void* args) { -#ifdef DEBUG - if (gDebugStringFormatting) - { - printf("FormatStringToUpper(%hu)\n", format); - } -#endif - if (size == 0) { return; diff --git a/src/openrct2/localisation/Localisation.h b/src/openrct2/localisation/Localisation.h index 84c22d3232..1b624ebd24 100644 --- a/src/openrct2/localisation/Localisation.h +++ b/src/openrct2/localisation/Localisation.h @@ -44,7 +44,6 @@ extern const char real_name_initials[16]; extern const char* real_names[1024]; extern thread_local char gCommonStringFormatBuffer[CommonTextBufferSize]; -extern bool gDebugStringFormatting; extern const StringId ObjectiveNames[12]; extern const StringId ResearchFundingLevelNames[4];