diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 9e1bd645268..2fd854f48e8 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1701,14 +1701,8 @@ TypedArray ClassDB::class_get_method_list(const StringName &p_class, ::ClassDB::get_method_list(p_class, &methods, p_no_inheritance); TypedArray ret; - for (const MethodInfo &E : methods) { -#ifdef DEBUG_ENABLED - ret.push_back(E.operator Dictionary()); -#else - Dictionary dict; - dict["name"] = E.name; - ret.push_back(dict); -#endif // DEBUG_ENABLED + for (const MethodInfo &method : methods) { + ret.push_back(method.operator Dictionary()); } return ret;