Remove toRect_normalized().
authorRobin Burchell <robin+qt@viroteck.net>
Sat, 23 Jun 2012 19:28:22 +0000 (21:28 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 12:42:03 +0000 (14:42 +0200)
Seems to have been unused since qt4's fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd.

Change-Id: I7ec88fb4ca8c1ffda469a1c048b4fea17ff042bc
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qpaintengine_raster.cpp

index e73fb5e..dcf107b 100644 (file)
@@ -2097,17 +2097,6 @@ void QRasterPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pixmap, cons
     }
 }
 
-// assumes that rect has positive width and height
-static inline const QRect toRect_normalized(const QRectF &rect)
-{
-    const int x = qRound(rect.x());
-    const int y = qRound(rect.y());
-    const int w = int(rect.width() + qreal(0.5));
-    const int h = int(rect.height() + qreal(0.5));
-
-    return QRect(x, y, w, h);
-}
-
 static inline int fast_ceil_positive(const qreal &v)
 {
     const int iv = int(v);