aboutsummaryrefslogtreecommitdiff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp7
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) {