summaryrefslogtreecommitdiff
path: root/tests/auto/selftests/tst_selftests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/selftests/tst_selftests.cpp')
-rw-r--r--tests/auto/selftests/tst_selftests.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/selftests/tst_selftests.cpp b/tests/auto/selftests/tst_selftests.cpp
index 0d27d3890a..1c01c5f2fb 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;