You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Style: Remove redundant DEBUG_METHODS_ENABLED
• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
This commit is contained in:
@@ -50,11 +50,11 @@ PropertyInfo MethodBind::get_argument_info(int p_argument) const {
|
||||
ERR_FAIL_INDEX_V(p_argument, get_argument_count(), PropertyInfo());
|
||||
|
||||
PropertyInfo info = _gen_argument_type_info(p_argument);
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (info.name.is_empty()) {
|
||||
info.name = p_argument < arg_names.size() ? String(arg_names[p_argument]) : String("_unnamed_arg" + itos(p_argument));
|
||||
}
|
||||
#endif
|
||||
#endif // DEBUG_ENABLED
|
||||
return info;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ void MethodBind::set_name(const StringName &p_name) {
|
||||
name = p_name;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
void MethodBind::set_argument_names(const Vector<StringName> &p_names) {
|
||||
arg_names = p_names;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ Vector<StringName> MethodBind::get_argument_names() const {
|
||||
return arg_names;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
void MethodBind::set_default_arguments(const Vector<Variant> &p_defargs) {
|
||||
default_arguments = p_defargs;
|
||||
|
||||
Reference in New Issue
Block a user