Remove argument name strings from release builds

They are not needed in release, so we can remove them to reduce the
binary size.
This commit is contained in:
George Marques
2022-04-05 20:40:07 -03:00
parent e4f0fc50f7
commit 62ad18a3a1
3 changed files with 23 additions and 2 deletions

View File

@@ -69,8 +69,6 @@ PropertyInfo MethodBind::get_argument_info(int p_argument) const {
PropertyInfo info = _gen_argument_type_info(p_argument);
#ifdef DEBUG_METHODS_ENABLED
info.name = p_argument < arg_names.size() ? String(arg_names[p_argument]) : String("arg" + itos(p_argument));
#else
info.name = String("arg" + itos(p_argument));
#endif
return info;
}