summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJohan Manuel <johan.manuel@live.fr>2016-07-26 15:04:16 +0200
committerJohan Manuel <johan.manuel@live.fr>2016-08-13 13:21:35 +0200
commit046f94d3acc9d4f6465fe05ae8ee3fbd315b23d2 (patch)
tree62cd7fb3316947d7b253d44a34ae67067b6e304d /core
parent8c0a050d49fdc7d922f6b854f0a11ae4bdf1462e (diff)
Remove some unused variables
Diffstat (limited to 'core')
-rw-r--r--core/object_type_db.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/object_type_db.cpp b/core/object_type_db.cpp
index 4998263961..8c73d3b9af 100644
--- a/core/object_type_db.cpp
+++ b/core/object_type_db.cpp
@@ -849,21 +849,14 @@ MethodBind* ObjectTypeDB::bind_methodfi(uint32_t p_flags, MethodBind *p_bind , c
Vector<Variant> defvals;
-#define PARSE_DEFVAL(m_defval)\
-if (d##m_defval.used) defvals.insert(0,d##m_defval.val);\
-else goto set_defvals;
-
defvals.resize(p_defcount);
for(int i=0;i<p_defcount;i++) {
defvals[i]=*p_defs[p_defcount-i-1];
}
- set_defvals:
-
p_bind->set_default_arguments(defvals);
p_bind->set_hint_flags(p_flags);
-#undef PARSE_DEFVAL
return p_bind;
}