Browse Source

Merge pull request #43222 from KoBeWi/sub_editor_oblivion

Remove unused get_subeditor() method
Rémi Verschelde 4 năm trước cách đây
mục cha
commit
e856c5593b
2 tập tin đã thay đổi với 0 bổ sung11 xóa
  1. 0 10
      editor/editor_data.cpp
  2. 0 1
      editor/editor_data.h

+ 0 - 10
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--) {

+ 0 - 1
editor/editor_data.h

@@ -144,7 +144,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);