1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Remove unused variable in GDScriptLanguage.

This commit is contained in:
Yufeng Ying
2024-12-20 00:48:06 +08:00
parent fafc07335b
commit a43f90b89d
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() { void GDScriptLanguage::frame() {
calls = 0;
#ifdef DEBUG_ENABLED #ifdef DEBUG_ENABLED
if (profiling) { if (profiling) {
MutexLock lock(mutex); 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; thread_local GDScriptLanguage::CallStack GDScriptLanguage::_call_stack;
GDScriptLanguage::GDScriptLanguage() { GDScriptLanguage::GDScriptLanguage() {
calls = 0;
ERR_FAIL_COND(singleton); ERR_FAIL_COND(singleton);
singleton = this; singleton = this;
strings._init = StaticCString::create("_init"); strings._init = StaticCString::create("_init");

View File

@@ -476,8 +476,6 @@ class GDScriptLanguage : public ScriptLanguage {
#endif #endif
public: public:
int calls;
bool debug_break(const String &p_error, bool p_allow_continue = true); 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); 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; Variant **instruction_args = nullptr;
int defarg = 0; int defarg = 0;
#ifdef DEBUG_ENABLED
//GDScriptLanguage::get_singleton()->calls++;
#endif
uint32_t alloca_size = 0; uint32_t alloca_size = 0;
GDScript *script; GDScript *script;
int ip = 0; int ip = 0;