diff options
| author | Ignacio Etcheverry | 2017-08-09 11:54:27 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-08-10 07:17:44 +0200 |
| commit | 46fdf163991f6f6893e00b301267c6ef2380008e (patch) | |
| tree | 103e1b6f5bd5dfd3918a912286fefd6fdbdad12f /core/class_db.h | |
| parent | 1536cc438128fe4036fa7da5ec305513a781d3c8 (diff) | |
| download | godot-46fdf163991f6f6893e00b301267c6ef2380008e.tar.gz godot-46fdf163991f6f6893e00b301267c6ef2380008e.tar.zst godot-46fdf163991f6f6893e00b301267c6ef2380008e.zip | |
Diffstat (limited to 'core/class_db.h')
| -rw-r--r-- | core/class_db.h | 9 |
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 |
