Remove unused code from MeasuringContextTestCase.
m_win variable was never used and setUp() and tearDown() were simply not needed here. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,9 +36,6 @@ class MeasuringContextTestCase : public CppUnit::TestCase
|
||||
public:
|
||||
MeasuringContextTestCase() { }
|
||||
|
||||
virtual void setUp();
|
||||
virtual void tearDown();
|
||||
|
||||
private:
|
||||
CPPUNIT_TEST_SUITE( MeasuringContextTestCase );
|
||||
CPPUNIT_TEST( GetTextExtent );
|
||||
@@ -46,8 +43,6 @@ private:
|
||||
|
||||
void GetTextExtent();
|
||||
|
||||
wxWindow *m_win;
|
||||
|
||||
DECLARE_NO_COPY_CLASS(MeasuringContextTestCase)
|
||||
};
|
||||
|
||||
@@ -57,20 +52,6 @@ CPPUNIT_TEST_SUITE_REGISTRATION( MeasuringContextTestCase );
|
||||
// also include in its own registry so that these tests can be run alone
|
||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( MeasuringContextTestCase, "MeasuringContextTestCase" );
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// test initialization
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void MeasuringContextTestCase::setUp()
|
||||
{
|
||||
m_win = wxTheApp->GetTopWindow();
|
||||
}
|
||||
|
||||
void MeasuringContextTestCase::tearDown()
|
||||
{
|
||||
m_win = NULL;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// tests themselves
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user