1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 07:43:01 +01:00

Remove unused window events

This commit is contained in:
Gymnasiast
2022-08-27 16:50:02 +02:00
parent a8fb31cbb9
commit ae8b2b8374
3 changed files with 0 additions and 20 deletions

View File

@@ -129,8 +129,6 @@ void GameHandleInput()
ProcessMouseOver(screenCoords);
ProcessMouseTool(screenCoords);
}
window_visit_each([](rct_window* w) { window_event_unknown_08_call(w); });
}
/**

View File

@@ -1470,13 +1470,6 @@ void window_event_periodic_update_call(rct_window* w)
w->event_handlers->periodic_update(w);
}
void window_event_unknown_08_call(rct_window* w)
{
if (w->event_handlers != nullptr)
if (w->event_handlers->unknown_08 != nullptr)
w->event_handlers->unknown_08(w);
}
void window_event_tool_update_call(rct_window* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords)
{
if (w->event_handlers == nullptr)
@@ -1517,13 +1510,6 @@ void window_event_tool_abort_call(rct_window* w, WidgetIndex widgetIndex)
w->event_handlers->tool_abort(w, widgetIndex);
}
void window_event_unknown_0E_call(rct_window* w)
{
if (w->event_handlers != nullptr)
if (w->event_handlers->unknown_0E != nullptr)
w->event_handlers->unknown_0E(w);
}
void window_get_scroll_size(rct_window* w, int32_t scrollIndex, int32_t* width, int32_t* height)
{
if (w->event_handlers == nullptr)

View File

@@ -230,13 +230,11 @@ struct rct_window_event_list
void (*unknown_05)(struct rct_window*){};
void (*update)(struct rct_window*){};
void (*periodic_update)(struct rct_window*){};
void (*unknown_08)(struct rct_window*){};
void (*tool_update)(struct rct_window*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_down)(struct rct_window*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_drag)(struct rct_window*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_up)(struct rct_window*, WidgetIndex, const ScreenCoordsXY&){};
void (*tool_abort)(struct rct_window*, WidgetIndex){};
void (*unknown_0E)(struct rct_window*){};
void (*get_scroll_size)(struct rct_window*, int32_t, int32_t*, int32_t*){};
void (*scroll_mousedown)(struct rct_window*, int32_t, const ScreenCoordsXY&){};
void (*scroll_mousedrag)(struct rct_window*, int32_t, const ScreenCoordsXY&){};
@@ -677,13 +675,11 @@ void window_event_dropdown_call(rct_window* w, WidgetIndex widgetIndex, int32_t
void window_event_unknown_05_call(rct_window* w);
void window_event_update_call(rct_window* w);
void window_event_periodic_update_call(rct_window* w);
void window_event_unknown_08_call(rct_window* w);
void window_event_tool_update_call(rct_window* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords);
void window_event_tool_down_call(rct_window* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords);
void window_event_tool_drag_call(rct_window* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords);
void window_event_tool_up_call(rct_window* w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords);
void window_event_tool_abort_call(rct_window* w, WidgetIndex widgetIndex);
void window_event_unknown_0E_call(rct_window* w);
void window_get_scroll_size(rct_window* w, int32_t scrollIndex, int32_t* width, int32_t* height);
void window_event_scroll_mousedown_call(rct_window* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords);
void window_event_scroll_mousedrag_call(rct_window* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords);