Skip to content

Commit 5896921

Browse files
committed
Remove unused code in EditorBottomPanel and remove deprecated bottom panel operation
1 parent 78d9194 commit 5896921

4 files changed

Lines changed: 1 addition & 11 deletions

File tree

editor/gui/editor_bottom_panel.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "editor/gui/editor_version_button.h"
4040
#include "editor/scene/editor_scene_tabs.h"
4141
#include "editor/settings/editor_command_palette.h"
42-
#include "editor/themes/editor_scale.h"
4342
#include "scene/gui/box_container.h"
4443
#include "scene/gui/button.h"
4544
#include "scene/gui/separator.h"
@@ -150,12 +149,6 @@ void EditorBottomPanel::make_item_visible(Control *p_item, bool p_visible, bool
150149
dock->set_visible(p_visible);
151150
}
152151

153-
void EditorBottomPanel::move_item_to_end(Control *p_item) {
154-
EditorDock *dock = _get_dock_from_control(p_item);
155-
ERR_FAIL_NULL(dock);
156-
move_child(dock, -1);
157-
}
158-
159152
void EditorBottomPanel::hide_bottom_panel() {
160153
set_current_tab(-1);
161154
}

editor/gui/editor_bottom_panel.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class EditorBottomPanel : public TabContainer {
5151
int previous_tab = -1;
5252
bool lock_panel_switching = false;
5353
LocalVector<EditorDock *> bottom_docks;
54-
LocalVector<Ref<Shortcut>> dock_shortcuts;
5554
HashMap<String, int> dock_offsets;
5655

5756
LocalVector<Button *> legacy_buttons;
@@ -74,7 +73,6 @@ class EditorBottomPanel : public TabContainer {
7473
Button *add_item(String p_text, Control *p_item, const Ref<Shortcut> &p_shortcut = nullptr, bool p_at_front = false);
7574
void remove_item(Control *p_item);
7675
void make_item_visible(Control *p_item, bool p_visible = true, bool p_ignore_lock = false);
77-
void move_item_to_end(Control *p_item);
7876
void hide_bottom_panel();
7977
void toggle_last_opened_bottom_panel();
8078
void set_expanded(bool p_expanded);

editor/run/editor_run_bar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ void EditorRunBar::_run_native(const Ref<EditorExportPreset> &p_preset) {
375375

376376
void EditorRunBar::_profiler_autostart_indicator_pressed() {
377377
// Switch to the first profiler tab in the bottom panel.
378-
EditorNode::get_singleton()->get_bottom_panel()->make_item_visible(EditorDebuggerNode::get_singleton(), true);
378+
EditorDebuggerNode::get_singleton()->make_visible();
379379

380380
if (EditorSettings::get_singleton()->get_project_metadata("debug_options", "autostart_profiler", false)) {
381381
EditorDebuggerNode::get_singleton()->get_current_debugger()->switch_to_debugger(3);

editor/scene/2d/polygon_2d_editor_plugin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class Polygon2DEditor : public AbstractPolygon2DEditor {
8484
Polygon2D *node = nullptr;
8585
Polygon2D *previous_node = nullptr;
8686

87-
Button *dock_button = nullptr;
8887
EditorDock *polygon_edit = nullptr;
8988
Mode current_mode = MODE_MAX; // Uninitialized.
9089
Button *mode_buttons[MODE_MAX];

0 commit comments

Comments
 (0)