Remove unused overload of GetSavedGameData
This was SVN commit r16001.
This commit is contained in:
parent
d1cdf8f952
commit
c385a88c88
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user