HackStudio: Remove redundant insertion to m_open_files

previous_open_project_file already exists in m_open_files under the
active_file() key.
This commit is contained in:
Itamar 2021-05-08 12:20:11 +03:00 committed by Andreas Kling
parent 25a5e59f79
commit 77d462426b
Notes: sideshowbarker 2024-07-18 18:30:51 +09:00

View File

@ -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;