diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-27 18:33:21 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-27 18:33:21 +0100 |
| commit | 32fdf9272e1a94f8c51274a1758f4feae555341a (patch) | |
| tree | f5a1f7385256512e8ffd5354c236ddffc025b869 /src/MainWindow.cpp | |
| parent | d87b42dcd643ddbb6db17fd64acf69d4fa0c8948 (diff) | |
Cleaning code
Diffstat (limited to 'src/MainWindow.cpp')
| -rw-r--r-- | src/MainWindow.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
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<TabInfos *>(notebook->GetCurrentPage()); if (infos->type != TabInfos::GAME) { |
