mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
Codefix: Remove dead code for WID_SIL_FILTER_ENTER_BTN in sign window (#12897)
This commit is contained in:
parent
bdd16ee97f
commit
55ca1c77be
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user