diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-12-06 16:54:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-09 06:43:43 +0100 |
commit | 24980f398d1c0feb16b4dda82331b8be5ec77680 (patch) | |
tree | 0a36025034b73a331207b34b5fadc38f41fcc315 /tests | |
parent | f23c247fdeba172009e0b648f03328e73686c254 (diff) |
Remove unused QTRY_WAIT macros.
Change-Id: Ia1ca366b3f7b329b7aed76c427b62cc15ad9355e
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qfeedbackhapticseffect/tst_qfeedbackhapticseffect.cpp | 14 | ||||
-rw-r--r-- | tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/tests/auto/qfeedbackhapticseffect/tst_qfeedbackhapticseffect.cpp b/tests/auto/qfeedbackhapticseffect/tst_qfeedbackhapticseffect.cpp index 78e593f..da0b595 100644 --- a/tests/auto/qfeedbackhapticseffect/tst_qfeedbackhapticseffect.cpp +++ b/tests/auto/qfeedbackhapticseffect/tst_qfeedbackhapticseffect.cpp @@ -48,20 +48,6 @@ QT_USE_NAMESPACE -#define QTRY_WAIT(code, __expr) \ - do { \ - const int __step = 50; \ - const int __timeout = 5000; \ - if (!(__expr)) { \ - QTest::qWait(0); \ - } \ - for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ - do { code } while(0); \ - QTest::qWait(__step); \ - } \ - } while(0) - - class tst_QFeedbackHapticsEffect : public QObject { Q_OBJECT diff --git a/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp b/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp index 869f358..0afd6c0 100644 --- a/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp +++ b/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp @@ -47,20 +47,6 @@ #include <qfeedbackactuator.h> #include <QSignalSpy> -#define QTRY_WAIT(code, __expr) \ - do { \ - const int __step = 50; \ - const int __timeout = 5000; \ - if (!(__expr)) { \ - QTest::qWait(0); \ - } \ - for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \ - do { code } while(0); \ - QTest::qWait(__step); \ - } \ - } while(0) - - class tst_QFeedbackMMK : public QObject { Q_OBJECT |