X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ca3b64f1474b759653105ab741c97f64ee4bc3b..79099b80ad442cb93b2f7df716bf3d1dd80b446f:/src/generic/progdlgg.cpp diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 53ec12dda5..10c5e65e9e 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -130,8 +130,6 @@ wxProgressDialog::wxProgressDialog(wxString const &title, sizeLabel = m_msg->GetSize(); sizeDlg.y = 2*LAYOUT_MARGIN + sizeLabel.y; - wxWindow *lastWindow = m_msg; - if ( maximum > 0 ) { // note that we can't use wxGA_SMOOTH because it happens to @@ -143,7 +141,6 @@ wxProgressDialog::wxProgressDialog(wxString const &title, sizer->Add(m_gauge, 0, wxLEFT | wxRIGHT | wxTOP | wxEXPAND, 2*LAYOUT_MARGIN); m_gauge->SetValue(0); - lastWindow = m_gauge; wxSize sizeGauge = m_gauge->GetSize(); sizeDlg.y += 2*LAYOUT_MARGIN + sizeGauge.y;