Remove dead code from QTransform autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 28 Oct 2011 07:40:04 +0000 (17:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 01:34:43 +0000 (02:34 +0100)
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 <rohan.mcgovern@nokia.com>
tests/auto/gui/painting/qtransform/tst_qtransform.cpp

index 741b7f1..b3b90ba 100644 (file)
@@ -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;