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:
@@ -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();
|
||||
|
||||
@@ -333,7 +333,6 @@ namespace OpenRCT2
|
||||
|
||||
void TextinputCancel();
|
||||
|
||||
Viewport* WindowGetPreviousViewport(Viewport* current);
|
||||
void WindowInitAll();
|
||||
|
||||
void WindowFollowSprite(WindowBase& w, EntityId spriteIndex);
|
||||
|
||||
Reference in New Issue
Block a user