From 2f6b82b13f8c1069f746336863dad203332ea265 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 21 Aug 2022 18:54:51 +0200 Subject: [PATCH] Remove gMaxTextBoxInputLength (only written to) --- src/openrct2/interface/Window.cpp | 3 --- src/openrct2/interface/Window.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp index 91f3f10e5c..5845500663 100644 --- a/src/openrct2/interface/Window.cpp +++ b/src/openrct2/interface/Window.cpp @@ -43,7 +43,6 @@ rct_window* gWindowAudioExclusive; widget_identifier gCurrentTextBox = { { WindowClass::Null, 0 }, 0 }; char gTextBoxInput[TEXT_INPUT_SIZE] = { 0 }; -int32_t gMaxTextBoxInputLength = 0; int32_t gTextBoxFrameNo = 0; bool gUsingWidgetTextBox = false; TextInputSession* gTextInput; @@ -1979,8 +1978,6 @@ void window_start_textbox( gCurrentTextBox.widget_index = call_widget; gTextBoxFrameNo = 0; - gMaxTextBoxInputLength = maxLength; - window_close_by_class(WindowClass::Textinput); // Clear the text input buffer diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index dd0dfea4d6..79847fa50c 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -44,7 +44,6 @@ enum class RideConstructionState : uint8_t; #define TOP_TOOLBAR_HEIGHT 27 extern char gTextBoxInput[TEXT_INPUT_SIZE]; -extern int32_t gMaxTextBoxInputLength; extern int32_t gTextBoxFrameNo; extern bool gUsingWidgetTextBox; extern struct TextInputSession* gTextInput;