From b4a29dfab72a27995c2b5a2a2f27893a6ee246a9 Mon Sep 17 00:00:00 2001 From: PB Date: Sat, 24 Dec 2022 12:49:09 +0100 Subject: [PATCH] Remove unused variable from the dialogs sample --- samples/dialogs/dialogs.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index bd12a400fd..e0a5fa0c97 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -3855,19 +3855,16 @@ void StdButtonSizerDialog::OnEvent(wxCommandEvent& WXUNUSED(event)) EnableDisableControls(); long flags = 0; - unsigned long numButtons = 0; if (m_chkboxAffirmativeButton->IsChecked()) { if (m_radiobtnOk->GetValue()) { flags |= wxOK; - numButtons ++; } else if (m_radiobtnYes->GetValue()) { flags |= wxYES; - numButtons ++; } } @@ -3876,13 +3873,11 @@ void StdButtonSizerDialog::OnEvent(wxCommandEvent& WXUNUSED(event)) if (m_radiobtnCancel->GetValue()) { flags |= wxCANCEL; - numButtons ++; } else if (m_radiobtnClose->GetValue()) { flags |= wxCLOSE; - numButtons ++; } } @@ -3890,19 +3885,16 @@ void StdButtonSizerDialog::OnEvent(wxCommandEvent& WXUNUSED(event)) if (m_chkboxApply->IsChecked()) { flags |= wxAPPLY; - numButtons ++; } if (m_chkboxNo->IsChecked()) { flags |= wxNO; - numButtons ++; } if (m_chkboxHelp->IsChecked()) { flags |= wxHELP; - numButtons ++; } if (m_chkboxNoDefault->IsChecked())