From 012fc3f92317b1f1c96a9829755593463d9630e1 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Mon, 9 Aug 2021 23:40:38 +0200 Subject: [PATCH] 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. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 2 -- 1 file changed, 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 HackStudioWidget::selected_file_paths() const