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 --- tests/auto/corelib/io/qfile/tst_qfile.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'tests/auto/corelib/io/qfile') diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 0501ff5a44..a398140061 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -39,7 +39,6 @@ ** ****************************************************************************/ - #include #include @@ -101,15 +100,9 @@ class tst_QFile : public QObject { Q_OBJECT -public: - tst_QFile(); - virtual ~tst_QFile(); - - -public slots: +private slots: void init(); void cleanup(); -private slots: void initTestCase(); void cleanupTestCase(); void exists(); @@ -325,28 +318,14 @@ private: FILE *stream_; }; -tst_QFile::tst_QFile() -{ -} - -tst_QFile::~tst_QFile() -{ - -} - void tst_QFile::init() { -// TODO: Add initialization code here. -// This will be executed immediately before each test is run. fd_ = -1; stream_ = 0; } void tst_QFile::cleanup() { -// TODO: Add cleanup code here. -// This will be executed immediately after each test is run. - // for copyFallback() if (QFile::exists("file-copy-destination.txt")) { QFile::setPermissions("file-copy-destination.txt", -- cgit v1.2.3