1
0
Fork 0

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() { 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

@ -485,8 +485,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;