mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-06 12:29:42 +01: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;
|
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:
|
case WID_SIL_FILTER_MATCH_CASE_BTN:
|
||||||
SignList::match_case = !SignList::match_case; // Toggle match case
|
SignList::match_case = !SignList::match_case; // Toggle match case
|
||||||
this->SetWidgetLoweredState(WID_SIL_FILTER_MATCH_CASE_BTN, SignList::match_case); // Toggle button pushed state
|
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_SCROLLBAR, ///< Scrollbar of list.
|
||||||
WID_SIL_FILTER_TEXT, ///< Text box for typing a filter string.
|
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_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. */
|
/** Widgets of the #SignWindow class. */
|
||||||
|
Loading…
Reference in New Issue
Block a user