From 95d8daae1a922bd06a48817a7608019e4729a0fb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Apr 2015 00:05:59 +0200 Subject: [PATCH] No real changes, just removed unused variables from samples. Don't define constants which are never used to avoid clang -Wunused-const-variable warnings. --- samples/controls/controls.cpp | 6 ------ samples/statbar/statbar.cpp | 1 - samples/widgets/choice.cpp | 7 ------- 3 files changed, 14 deletions(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index ff73375309..5515f224b0 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -471,10 +471,6 @@ const int ID_RADIOBUTTON_2 = 167; const int ID_SET_FONT = 170; -#if wxUSE_GAUGE -const int ID_GAUGE = 180; -#endif // wxUSE_GAUGE - #if wxUSE_SLIDER const int ID_SLIDER = 181; #endif // wxUSE_SLIDER @@ -501,8 +497,6 @@ const int ID_SIZER_CHECK4 = 204; const int ID_SIZER_CHECK14 = 205; const int ID_SIZER_CHECKBIG = 206; -const int ID_HYPERLINK = 300; - wxBEGIN_EVENT_TABLE(MyPanel, wxPanel) EVT_IDLE ( MyPanel::OnIdle) EVT_BOOKCTRL_PAGE_CHANGING(ID_BOOK, MyPanel::OnPageChanging) diff --git a/samples/statbar/statbar.cpp b/samples/statbar/statbar.cpp index 6f75819420..895fe91a9b 100644 --- a/samples/statbar/statbar.cpp +++ b/samples/statbar/statbar.cpp @@ -227,7 +227,6 @@ enum }; static const int BITMAP_SIZE_X = 32; -static const int BITMAP_SIZE_Y = 15; // ---------------------------------------------------------------------------- // event tables and other macros for wxWidgets diff --git a/samples/widgets/choice.cpp b/samples/widgets/choice.cpp index c78c6540cf..787771a38a 100644 --- a/samples/widgets/choice.cpp +++ b/samples/widgets/choice.cpp @@ -215,13 +215,6 @@ void ChoiceWidgetsPage::CreateContent() wxT("&Set choice parameters")); wxSizer *sizerLeft = new wxStaticBoxSizer(box, wxVERTICAL); - static const wxString modes[] = - { - wxT("single"), - wxT("extended"), - wxT("multiple"), - }; - m_chkSort = CreateCheckBoxAndAddToSizer(sizerLeft, wxT("&Sort items")); wxButton *btn = new wxButton(this, ChoicePage_Reset, wxT("&Reset"));