Remove unused member variables from unit testing class

Thanks clang for the reminder about them with its -Wunused-private-field
warnings.
This commit is contained in:
Vadim Zeitlin
2017-11-02 01:39:49 +01:00
parent fdad46b10d
commit 62979a5f6f

View File

@@ -246,14 +246,6 @@ private:
// flag telling us whether we should run tests from our EVT_IDLE handler // flag telling us whether we should run tests from our EVT_IDLE handler
bool m_runTests; bool m_runTests;
// command lines options/parameters
bool m_list;
bool m_longlist;
bool m_detail;
bool m_timing;
wxArrayString m_registries;
wxLocale *m_locale;
// event handling hooks // event handling hooks
FilterEventFunc m_filterEventFunc; FilterEventFunc m_filterEventFunc;
ProcessEventFunc m_processEventFunc; ProcessEventFunc m_processEventFunc;
@@ -408,16 +400,12 @@ wxTestGLogHandler(const gchar* domain,
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
TestApp::TestApp() TestApp::TestApp()
: m_list(false),
m_longlist(false)
{ {
m_runTests = true; m_runTests = true;
m_filterEventFunc = NULL; m_filterEventFunc = NULL;
m_processEventFunc = NULL; m_processEventFunc = NULL;
m_locale = NULL;
#if wxUSE_GUI #if wxUSE_GUI
m_exitcode = EXIT_SUCCESS; m_exitcode = EXIT_SUCCESS;
#endif // wxUSE_GUI #endif // wxUSE_GUI
@@ -437,14 +425,9 @@ bool TestApp::OnInit()
#endif #endif
<< "build: " << WX_BUILD_OPTIONS_SIGNATURE << "\n" << "build: " << WX_BUILD_OPTIONS_SIGNATURE << "\n"
<< "running under " << wxGetOsDescription() << "running under " << wxGetOsDescription()
<< " as " << wxGetUserId(); << " as " << wxGetUserId()
<< ", locale is " << setlocale(LC_ALL, NULL)
if ( m_detail ) << std::endl;
{
cout << ", locale is " << setlocale(LC_ALL, NULL);
}
cout << std::endl;
#if wxUSE_GUI #if wxUSE_GUI
// create a parent window to be used as parent for the GUI controls // create a parent window to be used as parent for the GUI controls
@@ -498,8 +481,6 @@ int TestApp::RunTests()
int TestApp::OnExit() int TestApp::OnExit()
{ {
delete m_locale;
#if wxUSE_GUI #if wxUSE_GUI
delete GetTopWindow(); delete GetTopWindow();
#endif // wxUSE_GUI #endif // wxUSE_GUI