summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-05-08 12:20:11 +0300
committerAndreas Kling <kling@serenityos.org>2021-05-08 18:10:56 +0200
commit77d462426bb5dcc20c98768e1d84a9d8ea605830 (patch)
treecd89a82be1a21e019da0838cff435905255ae5c0 /Userland/DevTools
parent25a5e59f791a78ab7d7efe30b4cd1b745f19493c (diff)
downloadserenity-77d462426bb5dcc20c98768e1d84a9d8ea605830.zip
HackStudio: Remove redundant insertion to m_open_files
previous_open_project_file already exists in m_open_files under the active_file() key.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index 24214c5acc..099df50b11 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -223,7 +223,6 @@ bool HackStudioWidget::open_file(const String& full_filename)
// Update the scrollbar values of the previous_open_project_file and save them to m_open_files.
previous_open_project_file->vertical_scroll_value(current_editor().vertical_scrollbar().value());
previous_open_project_file->horizontal_scroll_value(current_editor().horizontal_scrollbar().value());
- m_open_files.set(active_file(), previous_open_project_file);
}
RefPtr<ProjectFile> new_project_file = nullptr;