1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Remove unused function (WindowGetPreviousViewport)

This commit is contained in:
Harry-Hopkinson
2025-05-27 18:26:08 +00:00
parent 994cc858e8
commit 2b19320db3
2 changed files with 0 additions and 24 deletions

View File

@@ -916,29 +916,6 @@ static constexpr float kWindowScrollLocations[][2] = {
});
}
Viewport* WindowGetPreviousViewport(Viewport* current)
{
bool foundPrevious = (current == nullptr);
for (auto it = g_window_list.rbegin(); it != g_window_list.rend(); it++)
{
auto& w = **it;
if (w.flags & WF_DEAD)
continue;
if (w.viewport != nullptr)
{
if (foundPrevious)
{
return w.viewport;
}
if (w.viewport == current)
{
foundPrevious = true;
}
}
}
return nullptr;
}
void WindowInitAll()
{
auto* windowMgr = Ui::GetWindowManager();

View File

@@ -333,7 +333,6 @@ namespace OpenRCT2
void TextinputCancel();
Viewport* WindowGetPreviousViewport(Viewport* current);
void WindowInitAll();
void WindowFollowSprite(WindowBase& w, EntityId spriteIndex);