aboutsummaryrefslogtreecommitdiff
path: root/core/class_db.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry2017-08-09 11:54:27 +0200
committerIgnacio Etcheverry2017-08-10 07:17:44 +0200
commit46fdf163991f6f6893e00b301267c6ef2380008e (patch)
tree103e1b6f5bd5dfd3918a912286fefd6fdbdad12f /core/class_db.h
parent1536cc438128fe4036fa7da5ec305513a781d3c8 (diff)
downloadgodot-46fdf163991f6f6893e00b301267c6ef2380008e.tar.gz
godot-46fdf163991f6f6893e00b301267c6ef2380008e.tar.zst
godot-46fdf163991f6f6893e00b301267c6ef2380008e.zip
Diffstat (limited to 'core/class_db.h')
-rw-r--r--core/class_db.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/class_db.h b/core/class_db.h
index 02eac0dbb..ea747ebc3 100644
--- a/core/class_db.h
+++ b/core/class_db.h
@@ -436,12 +436,6 @@ public:
MethodBind *bind = create_vararg_method_bind(p_method, p_info);
ERR_FAIL_COND_V(!bind, NULL);
- String rettype;
- if (p_name.operator String().find(":") != -1) {
- rettype = p_name.operator String().get_slice(":", 1);
- p_name = p_name.operator String().get_slice(":", 0);
- }
-
bind->set_name(p_name);
bind->set_default_arguments(p_default_args);
@@ -461,8 +455,7 @@ public:
}
type->method_map[p_name] = bind;
#ifdef DEBUG_METHODS_ENABLED
- if (!rettype.empty())
- bind->set_return_type(rettype);
+ bind->set_return_type("Variant");
type->method_order.push_back(p_name);
#endif