Remove toRect_normalized().
Seems to have been unused since qt4's fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd. Change-Id: I7ec88fb4ca8c1ffda469a1c048b4fea17ff042bc Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
27d7d7c69e
commit
92455dad4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user