Merge pull request #104921 from Ivorforce/no-get-valid-parents

Remove unused `get_valid_parents_static` functions from `GDCLASS`.
This commit is contained in:
Thaddeus Crews 2025-04-03 09:27:54 -05:00
commit d0b3e0b474
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 0 additions and 15 deletions

View file

@ -258,12 +258,6 @@ void Object::_postinitialize() {
notification(NOTIFICATION_POSTINITIALIZE);
}
void Object::get_valid_parents_static(List<String> *p_parents) {
}
void Object::_get_valid_parents_static(List<String> *p_parents) {
}
void Object::set(const StringName &p_name, const Variant &p_value, bool *r_valid) {
#ifdef TOOLS_ENABLED

View file

@ -441,13 +441,6 @@ public:
return true; \
} \
return (p_class == (#m_class)) ? true : m_inherits::is_class(p_class); \
} \
static void get_valid_parents_static(List<String> *p_parents) { \
if (m_class::_get_valid_parents_static != m_inherits::_get_valid_parents_static) { \
m_class::_get_valid_parents_static(p_parents); \
} \
\
m_inherits::get_valid_parents_static(p_parents); \
} \
\
protected: \
@ -749,8 +742,6 @@ protected:
_FORCE_INLINE_ void (Object::*_get_notification() const)(int) {
return &Object::_notification;
}
static void get_valid_parents_static(List<String> *p_parents);
static void _get_valid_parents_static(List<String> *p_parents);
Variant _call_bind(const Variant **p_args, int p_argcount, Callable::CallError &r_error);
Variant _call_deferred_bind(const Variant **p_args, int p_argcount, Callable::CallError &r_error);