Cleanup: Remove unused GameOptionsWindowNumber::GameSettings window number (#15617)

Remove associated redundant SetWindowDirty calls
This commit is contained in:
Jonathan G Rennison
2026-05-23 01:18:30 +01:00
committed by GitHub
parent b13cf794bc
commit f2aeed9cb9
3 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ GSWindow.WN_GAME_OPTIONS_GS <- GSWindow.GameOptionsWindowNumber.GS;
GSWindow.WN_GAME_OPTIONS_ABOUT <- GSWindow.GameOptionsWindowNumber.About;
GSWindow.WN_GAME_OPTIONS_NEWGRF_STATE <- GSWindow.GameOptionsWindowNumber.NewGRFState;
GSWindow.WN_GAME_OPTIONS_GAME_OPTIONS <- GSWindow.GameOptionsWindowNumber.GameOptions;
GSWindow.WN_GAME_OPTIONS_GAME_SETTINGS <- GSWindow.GameOptionsWindowNumber.GameSettings;
GSWindow.WN_GAME_OPTIONS_GAME_SETTINGS <- GSWindow.GameOptionsWindowNumber.GameOptions;
GSWindow.WN_QUERY_STRING <- GSWindow.QueryStringWindowNumber.Default;
GSWindow.WN_QUERY_STRING_SIGN <- GSWindow.QueryStringWindowNumber.Sign;
GSWindow.WN_CONFIRM_POPUP_QUERY <- GSWindow.ConfirmPopupQueryWindowNumber.Default;
-2
View File
@@ -1641,14 +1641,12 @@ public:
case WID_BS_DRAG_SIGNALS_DENSITY_DECREASE:
if (_settings_client.gui.drag_signals_density > 1) {
_settings_client.gui.drag_signals_density--;
SetWindowDirty(WindowClass::GameOptions, GameOptionsWindowNumber::GameSettings);
}
break;
case WID_BS_DRAG_SIGNALS_DENSITY_INCREASE:
if (_settings_client.gui.drag_signals_density < 20) {
_settings_client.gui.drag_signals_density++;
SetWindowDirty(WindowClass::GameOptions, GameOptionsWindowNumber::GameSettings);
}
break;
-2
View File
@@ -30,7 +30,6 @@ enum class GameOptionsWindowNumber : uint8_t {
About, ///< About window.
NewGRFState, ///< NewGRF settings.
GameOptions, ///< Game options.
GameSettings, ///< Game settings.
};
/** Window numbers for QueryString windows. */
@@ -643,7 +642,6 @@ enum class WindowClass : uint16_t {
* - #GameOptionsWindowNumber::About = #AboutWidgets
* - #GameOptionsWindowNumber::NewGRFState = #NewGRFStateWidgets
* - #GameOptionsWindowNumber::GameOptions = #GameOptionsWidgets
* - #GameOptionsWindowNumber::GameSettings = #GameSettingsWidgets
*/
GameOptions,