From b9d0579be98353b10b103ffe768df049e1919985 Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Mon, 28 Aug 2017 18:56:06 -0400 Subject: [PATCH] Removed ParamDef and ParamHint structs --- core/class_db.cpp | 5 ----- core/class_db.h | 23 ----------------------- 2 files changed, 28 deletions(-) diff --git a/core/class_db.cpp b/core/class_db.cpp index 4b0e1b31f03..481b1c398af 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -46,11 +46,6 @@ #ifdef DEBUG_METHODS_ENABLED -ParamDef::ParamDef(const Variant &p_variant) - : used(true), - val(p_variant) { -} - MethodDefinition D_METHOD(const char *p_name) { MethodDefinition md; diff --git a/core/class_db.h b/core/class_db.h index 25a50005720..f6b97748b04 100644 --- a/core/class_db.h +++ b/core/class_db.h @@ -38,29 +38,6 @@ @author Juan Linietsky */ -struct ParamHint { - - String name; - PropertyHint hint; - String hint_text; - Variant default_val; - - ParamHint(const String &p_name = "", PropertyHint p_hint = PROPERTY_HINT_NONE, const String &p_hint_text = "", const Variant &p_default_val = Variant()) - : name(p_name), - hint(p_hint), - hint_text(p_hint_text), - default_val(p_default_val) { - } -}; - -struct ParamDef { - bool used; - Variant val; - _FORCE_INLINE_ ParamDef() { used = false; } - ParamDef(const Variant &p_variant); -}; - -//#define DEFVAL( m_defval ) ParamDef(m_defval) #define DEFVAL(m_defval) (m_defval) //#define SIMPLE_METHODDEF