diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-14 13:23:58 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-14 16:54:55 +0200 |
commit | 0be6d925dc3c6413bce7a3ccb49631b8e4a6e67a (patch) | |
tree | a27e497da7104dd0a64f98a04fa3067668735e91 /editor/debugger/editor_debugger_tree.cpp | |
parent | 710b34b70227becdc652b4ae027fe0ac47409642 (diff) | |
download | redot-engine-0be6d925dc3c6413bce7a3ccb49631b8e4a6e67a.tar.gz |
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027.
Diffstat (limited to 'editor/debugger/editor_debugger_tree.cpp')
-rw-r--r-- | editor/debugger/editor_debugger_tree.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/editor/debugger/editor_debugger_tree.cpp b/editor/debugger/editor_debugger_tree.cpp index c2b94c79bb..ecffa0f05d 100644 --- a/editor/debugger/editor_debugger_tree.cpp +++ b/editor/debugger/editor_debugger_tree.cpp @@ -64,7 +64,6 @@ void EditorDebuggerTree::_bind_methods() { } void EditorDebuggerTree::_scene_tree_selected() { - if (updating_scene_tree) { return; } @@ -80,9 +79,7 @@ void EditorDebuggerTree::_scene_tree_selected() { } void EditorDebuggerTree::_scene_tree_folded(Object *p_obj) { - if (updating_scene_tree) { - return; } TreeItem *item = Object::cast_to<TreeItem>(p_obj); @@ -99,7 +96,6 @@ void EditorDebuggerTree::_scene_tree_folded(Object *p_obj) { } void EditorDebuggerTree::_scene_tree_rmb_selected(const Vector2 &p_position) { - TreeItem *item = get_item_at_position(p_position); if (!item) return; @@ -224,11 +220,8 @@ String EditorDebuggerTree::_get_path(TreeItem *p_item) { } void EditorDebuggerTree::_item_menu_id_pressed(int p_option) { - switch (p_option) { - case ITEM_MENU_SAVE_REMOTE_NODE: { - file_dialog->set_access(EditorFileDialog::ACCESS_RESOURCES); file_dialog->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE); @@ -243,7 +236,6 @@ void EditorDebuggerTree::_item_menu_id_pressed(int p_option) { file_dialog->popup_centered_ratio(); } break; case ITEM_MENU_COPY_NODE_PATH: { - String text = get_selected_path(); if (text.empty()) { return; |