diff options
author | Karol Kosek <krkk@krkk.ct8.pl> | 2021-08-09 23:40:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-12 18:55:58 +0200 |
commit | 012fc3f92317b1f1c96a9829755593463d9630e1 (patch) | |
tree | a393dd54dfef9d5f6abfd30465c43d15526f2526 /Userland/DevTools | |
parent | a2cb5c862d7a0fcd54b8564da95d530063f388be (diff) | |
download | serenity-012fc3f92317b1f1c96a9829755593463d9630e1.zip |
HackStudio: Remove noop code when opening the project
28b1e66b51ec7b4552a12ac5ee37ecd6b96d4541 made that
the m_all_editor_wrappers vector is cleared everytime a project path
is changed (the m_project if check is just for the app launch --
the vector is empty there anyway), making the code never execute.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index a06b07cc9f..9372904cb9 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -211,8 +211,6 @@ void HackStudioWidget::open_project(const String& root_path) debugger.reset_breakpoints(); debugger.set_source_root(m_project->root_path()); } - for (auto& editor_wrapper : m_all_editor_wrappers) - editor_wrapper.set_project_root(LexicalPath(m_project->root_path())); } Vector<String> HackStudioWidget::selected_file_paths() const |