diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-26 15:46:01 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-26 15:46:01 +0100 |
commit | 5371009d8efbeee7b272b76de6534cad567fc60a (patch) | |
tree | 6208b5d000ed4a4dceb3ce145e35794573e5b73a /core/object/object.h | |
parent | fec24869948ae07d615b31b984296b60505c1671 (diff) | |
download | redot-engine-5371009d8efbeee7b272b76de6534cad567fc60a.tar.gz |
Object: Remove unused category boilerplate
We might want to re-add something like this if/when we find a good use case
for it and do the effort to categorize all objects in the API properly.
Until then, it's better to remove that boilerplate since it's not needed.
Closes #18711.
Diffstat (limited to 'core/object/object.h')
-rw-r--r-- | core/object/object.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/core/object/object.h b/core/object/object.h index 41365cfe51..dbaf9f13fd 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -344,16 +344,6 @@ public: m_inherits::get_inheritance_list_static(p_inheritance_list); \ p_inheritance_list->push_back(String(#m_class)); \ } \ - static String get_category_static() { \ - String category = m_inherits::get_category_static(); \ - if (_get_category != m_inherits::_get_category) { \ - if (!category.is_empty()) { \ - category += "/"; \ - } \ - category += _get_category(); \ - } \ - return category; \ - } \ virtual bool is_class(const String &p_class) const override { \ if (_get_extension() && _get_extension()->is_class(p_class)) { \ return true; \ @@ -454,12 +444,6 @@ protected: \ private: -#define OBJ_CATEGORY(m_category) \ -protected: \ - _FORCE_INLINE_ static String _get_category() { return m_category; } \ - \ -private: - #define OBJ_SAVE_TYPE(m_class) \ public: \ virtual String get_save_class() const override { return #m_class; } \ @@ -590,7 +574,6 @@ protected: virtual void _get_property_listv(List<PropertyInfo> *p_list, bool p_reversed) const {}; virtual void _notificationv(int p_notification, bool p_reversed) {} - static String _get_category() { return ""; } static void _bind_methods(); bool _set(const StringName &p_name, const Variant &p_property) { return false; }; bool _get(const StringName &p_name, Variant &r_property) const { return false; }; @@ -694,7 +677,6 @@ public: static String get_class_static() { return "Object"; } static String get_parent_class_static() { return String(); } - static String get_category_static() { return String(); } virtual String get_class() const { if (_extension) { |