Merge pull request #100610 from YYF233333/style

Remove unused variable in `GDScriptLanguage`
This commit is contained in:
Rémi Verschelde 2024-12-20 23:56:58 +01:00
commit 0a37e12a9b
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 0 additions and 11 deletions

View file

@ -2727,8 +2727,6 @@ void GDScriptLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_so
}
void GDScriptLanguage::frame() {
calls = 0;
#ifdef DEBUG_ENABLED
if (profiling) {
MutexLock lock(mutex);
@ -2942,7 +2940,6 @@ String GDScriptLanguage::get_global_class_name(const String &p_path, String *r_b
thread_local GDScriptLanguage::CallStack GDScriptLanguage::_call_stack;
GDScriptLanguage::GDScriptLanguage() {
calls = 0;
ERR_FAIL_COND(singleton);
singleton = this;
strings._init = StaticCString::create("_init");

View file

@ -485,8 +485,6 @@ class GDScriptLanguage : public ScriptLanguage {
#endif
public:
int calls;
bool debug_break(const String &p_error, bool p_allow_continue = true);
bool debug_break_parse(const String &p_file, int p_line, const String &p_error);

View file

@ -511,12 +511,6 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
Variant **instruction_args = nullptr;
int defarg = 0;
#ifdef DEBUG_ENABLED
//GDScriptLanguage::get_singleton()->calls++;
#endif
uint32_t alloca_size = 0;
GDScript *script;
int ip = 0;