Sign window: Remove dead code for WID_SIL_FILTER_ENTER_BTN

This commit is contained in:
Jonathan G Rennison 2024-08-13 00:48:50 +01:00
parent 13e13e875c
commit 7b26ec91c6
2 changed files with 0 additions and 8 deletions

View File

@ -240,13 +240,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

View File

@ -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. */