summaryrefslogtreecommitdiffstats
path: root/core/variant.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-08-09 11:54:27 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2017-08-10 07:17:44 +0200
commit46fdf163991f6f6893e00b301267c6ef2380008e (patch)
tree103e1b6f5bd5dfd3918a912286fefd6fdbdad12f /core/variant.h
parent1536cc438128fe4036fa7da5ec305513a781d3c8 (diff)
downloadredot-engine-46fdf163991f6f6893e00b301267c6ef2380008e.tar.gz
Improves method bind detection of signature types
Diffstat (limited to 'core/variant.h')
-rw-r--r--core/variant.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/variant.h b/core/variant.h
index 95782d9619..40de1a9bce 100644
--- a/core/variant.h
+++ b/core/variant.h
@@ -49,7 +49,6 @@
#include "rect3.h"
#include "ref_ptr.h"
#include "rid.h"
-#include "simple_type.h"
#include "transform.h"
#include "ustring.h"
#include "vector3.h"
@@ -154,15 +153,6 @@ public:
static bool can_convert(Type p_type_from, Type p_type_to);
static bool can_convert_strict(Type p_type_from, Type p_type_to);
- template <class T>
- static Type get_type_for() {
-
- GetSimpleType<T> t;
- Variant v(t.type);
- Type r = v.get_type();
- return r;
- }
-
bool is_ref() const;
_FORCE_INLINE_ bool is_num() const { return type == INT || type == REAL; };
_FORCE_INLINE_ bool is_array() const { return type >= ARRAY; };