diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-11 02:43:28 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-04-18 00:18:44 (GMT) |
commit | ed3703f6779e7bc94744347eeb4d925d0f7f267c (patch) | |
tree | ca102dbfdaf678bbb22370ce0b40344982c5acc8 /tests/auto/selftests | |
parent | 7b0d6dce4b00c190b57da1edc65cd129765cdd24 (diff) | |
download | Qt-ed3703f6779e7bc94744347eeb4d925d0f7f267c.zip Qt-ed3703f6779e7bc94744347eeb4d925d0f7f267c.tar.gz Qt-ed3703f6779e7bc94744347eeb4d925d0f7f267c.tar.bz2 |
Remove autotest code related to old Qt versions
Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto/selftests')
-rw-r--r-- | tests/auto/selftests/tst_selftests.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/selftests/tst_selftests.cpp b/tests/auto/selftests/tst_selftests.cpp index 0d27d38..1c01c5f 100644 --- a/tests/auto/selftests/tst_selftests.cpp +++ b/tests/auto/selftests/tst_selftests.cpp @@ -515,8 +515,6 @@ BenchmarkResult BenchmarkResult::parse(QString const& line, QString* error) } bool ok; -#if QT_VERSION >= 0x040700 - // Qt 4.7 uses floating point double total = sTotal.toDouble(&ok); if (!ok) { if (error) *error = sTotal + " is not a valid number"; @@ -527,18 +525,6 @@ BenchmarkResult BenchmarkResult::parse(QString const& line, QString* error) if (error) *error = sIterations + " is not a valid number"; return out; } -#else - qlonglong total = sTotal.toLongLong(&ok); - if (!ok) { - if (error) *error = sTotal + " is not a valid integer"; - return out; - } - qlonglong iterations = sIterations.toLongLong(&ok); - if (!ok) { - if (error) *error = sIterations + " is not a valid integer"; - return out; - } -#endif out.unit = unit; out.total = total; |