Removed unnecessary method from MainWindow