From 32fdf9272e1a94f8c51274a1758f4feae555341a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 27 Dec 2022 18:33:21 +0100 Subject: Cleaning code --- src/MainWindow.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/MainWindow.cpp') diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index cc83f5b..6fb73c3 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -48,7 +48,6 @@ MainWindow::MainWindow() Bind(wxEVT_AUINOTEBOOK_PAGE_CHANGED, &MainWindow::OnPageChange, this, wxID_ANY); Bind(REFRESH_TAB_TITLE, &MainWindow::OnRefreshTabTitle, this, wxID_ANY); - Bind(NEW_GAME_EVENT, &MainWindow::OnNewGame, this, wxID_ANY); Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnClose, this); Bind(CLOSE_TAB_EVENT, &MainWindow::OnCloseTabEvent, this, wxID_ANY); Bind(wxEVT_MENU, &MainWindow::OnMenuItemClick, this, wxID_ANY); @@ -234,12 +233,6 @@ void MainWindow::NewGame(bool useFen) { } } -void MainWindow::OnNewGame(wxCommandEvent &event) { - TabInfos *tab = (TabInfos*)event.GetClientData(); - TabInfos *i=NewGame(tab->GetGame()); - i->Link(tab); -} - void MainWindow::OnPageChange(wxAuiNotebookEvent &event) { TabInfos *infos = dynamic_cast(notebook->GetCurrentPage()); if (infos->type != TabInfos::GAME) { -- cgit v1.2.3