ScriptGlobal::Set(): remove unused bool overrideFrozen

This commit is contained in:
Alexander A. Klimov 2023-02-08 11:50:40 +01:00
parent cd78da13d3
commit e9846f1827
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ Value ScriptGlobal::Get(const String& name, const Value *defaultValue)
return result;
}
void ScriptGlobal::Set(const String& name, const Value& value, bool overrideFrozen)
void ScriptGlobal::Set(const String& name, const Value& value)
{
std::vector<String> tokens = name.Split(".");
@ -59,7 +59,7 @@ void ScriptGlobal::Set(const String& name, const Value& value, bool overrideFroz
}
}
parent->SetFieldByName(tokens[tokens.size() - 1], value, overrideFrozen, DebugInfo());
parent->SetFieldByName(tokens[tokens.size() - 1], value, false, DebugInfo());
}
}

View File

@ -18,7 +18,7 @@ class ScriptGlobal
{
public:
static Value Get(const String& name, const Value *defaultValue = nullptr);
static void Set(const String& name, const Value& value, bool overrideFrozen = false);
static void Set(const String& name, const Value& value);
static void SetConst(const String& name, const Value& value);
static bool Exists(const String& name);