From 55ca1c77be3d965c0e9865c4c7e4c31a16afcaa6 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 13 Aug 2024 08:37:31 +0100 Subject: [PATCH] Codefix: Remove dead code for WID_SIL_FILTER_ENTER_BTN in sign window (#12897) --- src/signs_gui.cpp | 7 ------- src/widgets/sign_widget.h | 1 - 2 files changed, 8 deletions(-) diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 152d3a7515..56357e648d 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -243,13 +243,6 @@ struct SignListWindow : Window, SignList { break; } - case WID_SIL_FILTER_ENTER_BTN: - if (this->signs.size() >= 1) { - const Sign *si = this->signs[0]; - ScrollMainWindowToTile(TileVirtXY(si->x, si->y)); - } - break; - case WID_SIL_FILTER_MATCH_CASE_BTN: SignList::match_case = !SignList::match_case; // Toggle match case this->SetWidgetLoweredState(WID_SIL_FILTER_MATCH_CASE_BTN, SignList::match_case); // Toggle button pushed state diff --git a/src/widgets/sign_widget.h b/src/widgets/sign_widget.h index 0ab5fe060d..e8b9a95866 100644 --- a/src/widgets/sign_widget.h +++ b/src/widgets/sign_widget.h @@ -18,7 +18,6 @@ enum SignListWidgets : WidgetID { WID_SIL_SCROLLBAR, ///< Scrollbar of list. WID_SIL_FILTER_TEXT, ///< Text box for typing a filter string. WID_SIL_FILTER_MATCH_CASE_BTN, ///< Button to toggle if case sensitive filtering should be used. - WID_SIL_FILTER_ENTER_BTN, ///< Scroll to first sign. }; /** Widgets of the #SignWindow class. */