Remove Engine.SwitchGuiPage
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled

This function isn't used by JavaScript anymore.

Fixes: #6929
This commit is contained in:
phosit 2026-03-23 19:32:18 +01:00
parent bb714c89ef
commit 0f7417bb47
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -43,11 +43,6 @@ JS::Value OpenChildPage(const ScriptRequest& rq, const std::wstring& name, JS::H
return g_GUI->OpenChildPage(name, Script::WriteStructuredClone(rq, initData));
}
void SwitchGuiPage(const ScriptInterface& scriptInterface, const std::wstring& name, JS::HandleValue initData)
{
g_GUI->SwitchPage(name, &scriptInterface, initData);
}
void SetCursor(const std::wstring& name)
{
g_VideoMode.SetCursor(name);
@ -72,7 +67,6 @@ CParamNode GetTemplate(const std::string& templateName)
void RegisterScriptFunctions(const ScriptRequest& rq)
{
ScriptFunction::Register<&OpenChildPage>(rq, "OpenChildPage");
ScriptFunction::Register<&SwitchGuiPage>(rq, "SwitchGuiPage");
ScriptFunction::Register<&SetCursor>(rq, "SetCursor");
ScriptFunction::Register<&ResetCursor>(rq, "ResetCursor");
ScriptFunction::Register<&TemplateExists>(rq, "TemplateExists");