]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unused code from MeasuringContextTestCase.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Oct 2012 22:35:21 +0000 (22:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Oct 2012 22:35:21 +0000 (22:35 +0000)
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

tests/graphics/measuring.cpp

index a0b9803a55a06f553e9e50325654b6206f7f0a03..1a2f5e16e8a6fe8918d8cee014b152154f6e31b4 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------