diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-10-30 22:23:08 +0100 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2020-10-30 22:23:08 +0100 |
commit | 16af326a46b102580f8efa09bbf64f9ab281f3f6 (patch) | |
tree | 49016c1ad7f3791e29994a94f6e6771f31358c84 /editor | |
parent | 41f66761fd8e41760dbffce9b9a4a4d8ceb7af0b (diff) |
Remove unused get_subeditor() method
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_data.cpp | 10 | ||||
-rw-r--r-- | editor/editor_data.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index 1002c4917b..72a316f91a 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -273,16 +273,6 @@ EditorPlugin *EditorData::get_editor(Object *p_object) { return nullptr; } -EditorPlugin *EditorData::get_subeditor(Object *p_object) { - for (int i = editor_plugins.size() - 1; i > -1; i--) { - if (!editor_plugins[i]->has_main_screen() && editor_plugins[i]->handles(p_object)) { - return editor_plugins[i]; - } - } - - return nullptr; -} - Vector<EditorPlugin *> EditorData::get_subeditors(Object *p_object) { Vector<EditorPlugin *> sub_plugins; for (int i = editor_plugins.size() - 1; i > -1; i--) { diff --git a/editor/editor_data.h b/editor/editor_data.h index 8083dde09c..7a89e3604e 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -145,7 +145,6 @@ private: public: EditorPlugin *get_editor(Object *p_object); - EditorPlugin *get_subeditor(Object *p_object); Vector<EditorPlugin *> get_subeditors(Object *p_object); EditorPlugin *get_editor(String p_name); |