You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Remove unused get_inheritance_list_static from GDCLASS.
This commit is contained in:
@@ -432,10 +432,6 @@ public:
|
|||||||
static _FORCE_INLINE_ String get_parent_class_static() { \
|
static _FORCE_INLINE_ String get_parent_class_static() { \
|
||||||
return m_inherits::get_class_static(); \
|
return m_inherits::get_class_static(); \
|
||||||
} \
|
} \
|
||||||
static void get_inheritance_list_static(List<String> *p_inheritance_list) { \
|
|
||||||
m_inherits::get_inheritance_list_static(p_inheritance_list); \
|
|
||||||
p_inheritance_list->push_back(String(#m_class)); \
|
|
||||||
} \
|
|
||||||
virtual bool is_class(const String &p_class) const override { \
|
virtual bool is_class(const String &p_class) const override { \
|
||||||
if (_get_extension() && _get_extension()->is_class(p_class)) { \
|
if (_get_extension() && _get_extension()->is_class(p_class)) { \
|
||||||
return true; \
|
return true; \
|
||||||
@@ -817,8 +813,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* TYPE API */
|
/* TYPE API */
|
||||||
static void get_inheritance_list_static(List<String> *p_inheritance_list) { p_inheritance_list->push_back("Object"); }
|
|
||||||
|
|
||||||
static String get_class_static() { return "Object"; }
|
static String get_class_static() { return "Object"; }
|
||||||
static String get_parent_class_static() { return String(); }
|
static String get_parent_class_static() { return String(); }
|
||||||
|
|
||||||
|
|||||||
@@ -143,15 +143,6 @@ TEST_CASE("[Object] Core getters") {
|
|||||||
CHECK_MESSAGE(
|
CHECK_MESSAGE(
|
||||||
object.get_save_class() == "Object",
|
object.get_save_class() == "Object",
|
||||||
"The returned save class should match the expected value.");
|
"The returned save class should match the expected value.");
|
||||||
|
|
||||||
List<String> inheritance_list;
|
|
||||||
object.get_inheritance_list_static(&inheritance_list);
|
|
||||||
CHECK_MESSAGE(
|
|
||||||
inheritance_list.size() == 1,
|
|
||||||
"The inheritance list should consist of Object only");
|
|
||||||
CHECK_MESSAGE(
|
|
||||||
inheritance_list.front()->get() == "Object",
|
|
||||||
"The inheritance list should consist of Object only");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("[Object] Metadata") {
|
TEST_CASE("[Object] Metadata") {
|
||||||
|
|||||||
Reference in New Issue
Block a user