1
0
forked from 0ad/0ad

Remove unused overload of GetSavedGameData

This was SVN commit r16001.
This commit is contained in:
Yves 2014-11-22 19:46:24 +00:00
parent d1cdf8f952
commit c385a88c88
2 changed files with 0 additions and 15 deletions

View File

@ -282,19 +282,6 @@ Status CGUIManager::ReloadAllPages()
return INFO::OK;
}
CScriptVal CGUIManager::GetSavedGameData(ScriptInterface*& pPageScriptInterface)
{
JSContext* cx = top()->GetScriptInterface()->GetContext();
JSAutoRequest rq(cx);
JS::RootedValue global(cx, top()->GetGlobalObject());
JS::RootedValue data(cx);
if (!top()->GetScriptInterface()->CallFunction(global, "getSavedGameData", &data))
LOGERROR(L"Failed to call getSavedGameData() on the current GUI page");
pPageScriptInterface = GetScriptInterface().get();
return CScriptVal(data);
}
std::string CGUIManager::GetSavedGameData()
{
shared_ptr<ScriptInterface> scriptInterface = top()->GetScriptInterface();

View File

@ -134,9 +134,7 @@ public:
/**
* Calls the current page's script function getSavedGameData() and returns the result.
* The first overload also returns a pointer to the ScriptInterface the returned CScriptVal belongs to.
*/
CScriptVal GetSavedGameData(ScriptInterface*& pPageScriptInterface);
std::string GetSavedGameData();
void RestoreSavedGameData(std::string jsonData);