From e9846f1827365bfe9dba02b2230a92b83a2b88de Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 8 Feb 2023 11:50:40 +0100 Subject: [PATCH] ScriptGlobal::Set(): remove unused bool overrideFrozen --- lib/base/scriptglobal.cpp | 4 ++-- lib/base/scriptglobal.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/base/scriptglobal.cpp b/lib/base/scriptglobal.cpp index f730612b1..7a6aada16 100644 --- a/lib/base/scriptglobal.cpp +++ b/lib/base/scriptglobal.cpp @@ -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 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()); } } diff --git a/lib/base/scriptglobal.hpp b/lib/base/scriptglobal.hpp index c31cdcdf6..f349b7b01 100644 --- a/lib/base/scriptglobal.hpp +++ b/lib/base/scriptglobal.hpp @@ -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);