From 38c8bc481d9e09b5dac33a0c5901d3e9453a3fce Mon Sep 17 00:00:00 2001
From: Johannes Kung <johku144@student.liu.se>
Date: Tue, 2 Jul 2024 13:43:18 +0200
Subject: [PATCH] Removed some dead code and unnecessary comments

---
 src/simudator/gui/cpu_graphics_scene.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/simudator/gui/cpu_graphics_scene.py b/src/simudator/gui/cpu_graphics_scene.py
index 16582e8..a64e417 100644
--- a/src/simudator/gui/cpu_graphics_scene.py
+++ b/src/simudator/gui/cpu_graphics_scene.py
@@ -254,10 +254,6 @@ class CpuGraphicsScene(QGraphicsScene):
         dialog.setAcceptMode(QFileDialog.AcceptOpen)
         path = dialog.getSaveFileName()[0]
 
-        # Change file to the selected file if a file was selected
-        if path == '':
-            return
-
         # Open the given file erasing the previous content
         with open(path, "w") as fp:
             graphics_modules_data = {}
@@ -314,7 +310,6 @@ class CpuGraphicsScene(QGraphicsScene):
         file_path : str
             Path to a file containing a layout for the processor scene.
         """
-        # TODO: speed(?)
         graphics_modules = self._module_graphics_items
         ports = {}
         graphics_signals = {}
-- 
GitLab