From bd3088ceb322381ac33bda11554667f1c9a421f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sun, 26 Jul 2020 17:38:14 +0200 Subject: Fix warnings about unused variables and functions in tests Change-Id: Ia758a91384083c13fb4d743f500fef7a6629dfd5 Reviewed-by: Thiago Macieira --- tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests/auto/gui/painting') diff --git a/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp b/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp index 161ff5d3b7..af687f8cf1 100644 --- a/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp +++ b/tests/auto/gui/painting/qpainterpath/tst_qpainterpath.cpp @@ -955,18 +955,12 @@ void tst_QPainterPath::operators() QCOMPARE(test, expected); } -static inline bool pathFuzzyCompare(double p1, double p2) +template +static inline bool pathFuzzyCompare(T p1, T p2) { return qAbs(p1 - p2) < 0.001; } - -static inline bool pathFuzzyCompare(float p1, float p2) -{ - return qAbs(p1 - p2) < 0.001; -} - - void tst_QPainterPath::testArcMoveTo() { QFETCH(QRectF, rect); -- cgit v1.2.3