1
0
Fork 0

Codefix: Remove dead code for WID_SIL_FILTER_ENTER_BTN in sign window

pull/12897/head
Jonathan G Rennison 2024-08-13 00:49:44 +01:00
parent 367e508984
commit 2c043b91e6
2 changed files with 0 additions and 8 deletions

View File

@ -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

View File

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