diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-14 23:46:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-15 10:57:06 +0100 |
| commit | 7459697905a79ff36c8cd676a9b2f150f6491d6d (patch) | |
| tree | 6057357bd48882df577a676572fecf3bf4ae894b /src | |
| parent | c0d3ccb11d1bc31767a431c72f99e4a84c26b194 (diff) | |
Remove unused setup stuff in DownloadCertificatePanel.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/download_certificate_dialog.cc | 8 | ||||
| -rw-r--r-- | src/wx/download_certificate_dialog.h | 3 | ||||
| -rw-r--r-- | src/wx/download_certificate_panel.h | 2 |
3 files changed, 1 insertions, 12 deletions
diff --git a/src/wx/download_certificate_dialog.cc b/src/wx/download_certificate_dialog.cc index b4d602092..bccfbb5c2 100644 --- a/src/wx/download_certificate_dialog.cc +++ b/src/wx/download_certificate_dialog.cc @@ -33,7 +33,6 @@ DownloadCertificateDialog::DownloadCertificateDialog (wxWindow* parent) sizer->Add (_notebook, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); _pages.push_back (new DolbyDoremiCertificatePanel (_notebook, this)); - _setup.push_back (false); BOOST_FOREACH (DownloadCertificatePanel* i, _pages) { _notebook->AddPage (i, i->name(), true); @@ -92,17 +91,10 @@ DownloadCertificateDialog::setup_sensitivity () if (ok) { ok->Enable (static_cast<bool>(p->certificate ())); } - } void DownloadCertificateDialog::page_changed (wxNotebookEvent &) { - int const n = _notebook->GetSelection(); - if (!_setup[n]) { - _pages[n]->setup (); - _setup[n] = true; - } - setup_sensitivity (); } diff --git a/src/wx/download_certificate_dialog.h b/src/wx/download_certificate_dialog.h index dcb0a952a..0df504975 100644 --- a/src/wx/download_certificate_dialog.h +++ b/src/wx/download_certificate_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -39,7 +39,6 @@ private: wxNotebook* _notebook; std::vector<DownloadCertificatePanel*> _pages; - std::vector<bool> _setup; wxButton* _download; wxStaticText* _message; }; diff --git a/src/wx/download_certificate_panel.h b/src/wx/download_certificate_panel.h index 258d5ab25..98e48de39 100644 --- a/src/wx/download_certificate_panel.h +++ b/src/wx/download_certificate_panel.h @@ -32,8 +32,6 @@ class DownloadCertificatePanel : public wxPanel public: DownloadCertificatePanel (wxWindow* parent, DownloadCertificateDialog* dialog); - /* Do any setup that may take a noticeable amount of time */ - virtual void setup () {} virtual bool ready_to_download () const = 0; virtual void do_download (wxStaticText* message) = 0; virtual wxString name () const = 0; |
