From c8c9f6b46fa6a7a416340994cf8cb8a898d2a979 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Fri, 28 Oct 2011 17:40:04 +1000 Subject: [PATCH] Remove dead code from QTransform autotest. Remove the operator_star_qrect() test function. The body of this test function has been inside "#if 0" since the commit that created the test in 2006 and the operator it is trying to test doesn't exist. Seems fair to assume that this function isn't worth keeping. Change-Id: I9748273b28eae4b07c3a25f77cee412ad94ea822 Reviewed-by: Rohan McGovern --- .../gui/painting/qtransform/tst_qtransform.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/auto/gui/painting/qtransform/tst_qtransform.cpp b/tests/auto/gui/painting/qtransform/tst_qtransform.cpp index 741b7f1680..b3b90ba1b5 100644 --- a/tests/auto/gui/painting/qtransform/tst_qtransform.cpp +++ b/tests/auto/gui/painting/qtransform/tst_qtransform.cpp @@ -65,10 +65,8 @@ public slots: void cleanup(); private slots: void mapRect_data(); - void operator_star_qrect_data(); void mapToPolygon_data(); void mapRect(); - void operator_star_qrect(); void assignments(); void mapToPolygon(); void translate(); @@ -158,11 +156,6 @@ void tst_QTransform::mapRect_data() << QPolygon( QRect( -354, 212, 495, 495 ) ); } -void tst_QTransform::operator_star_qrect_data() -{ - mapping_data(); -} - void tst_QTransform::mapToPolygon_data() { mapping_data(); @@ -332,17 +325,6 @@ void tst_QTransform::mapRect() QCOMPARE( mapped, ir ); } -void tst_QTransform::operator_star_qrect() -{ -#if 0 - QFETCH( QTransform, matrix ); - QFETCH( QRect, src ); - QFETCH( QPolygon, res ); - - QCOMPARE( (matrix * src), QRegion(res) ); -#endif -} - void tst_QTransform::assignments() { QTransform m;