From e8f7fccf227a4b3c9fe533cd94e1ffec0107a208 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 7 Nov 2011 15:33:49 +1000 Subject: Cleanup corelib autotests Remove redundant empty constructors, destructors and test functions. Change-Id: Idb51368895e67ec3fc0345a9a5d33d77730c051b Reviewed-by: Rohan McGovern --- .../qpropertyanimation/tst_qpropertyanimation.cpp | 23 +++------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp') diff --git a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp index 309f77c7ce..1ac4063f67 100644 --- a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp +++ b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp @@ -90,14 +90,9 @@ public: class tst_QPropertyAnimation : public QObject { - Q_OBJECT -public: - tst_QPropertyAnimation(); - virtual ~tst_QPropertyAnimation(); - + Q_OBJECT public Q_SLOTS: - void init(); - void cleanup(); + void initTestCase(); private slots: void construction(); @@ -133,24 +128,12 @@ private slots: void zeroLoopCount(); }; -tst_QPropertyAnimation::tst_QPropertyAnimation() -{ -} - -tst_QPropertyAnimation::~tst_QPropertyAnimation() -{ -} - -void tst_QPropertyAnimation::init() +void tst_QPropertyAnimation::initTestCase() { qRegisterMetaType("QAbstractAnimation::State"); qRegisterMetaType("QAbstractAnimation::DeletionPolicy"); } -void tst_QPropertyAnimation::cleanup() -{ -} - class AnimationObject : public QObject { Q_OBJECT -- cgit v1.2.3