Cleaning code

This commit is contained in:
Loic Guegan 2022-02-25 13:38:49 +01:00
parent 6ccdc954c5
commit cbcc455e33
4 changed files with 13 additions and 16 deletions

View file

@ -58,22 +58,6 @@ MainWindow::MainWindow()
Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnClose, this);
}
class AdvancePage : public wxPreferencesPage {
public:
virtual wxString GetName() const { return "Topics"; }
virtual wxBitmap GetLargeIcon() {
return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR);
}
virtual wxWindow *CreateWindow(wxWindow *parent) {
wxPanel *p =
new wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(800, 800));
wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
s->Add(new wxButton(p, COPY_FEN_BTN, L"Copy FEN"), 1, wxEXPAND);
p->SetSizer(s);
return p;
}
};
void MainWindow::OnSettings(wxCommandEvent &event) {
if (prefsEditor != NULL) {
delete prefsEditor;