cocoa: Fix compiler warnings about unused functions.
Change-Id: Id85c86dd2f2468b3ac17751aefdebe0e8666a0c0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
07e1f524f3
commit
291c6615a3
@ -193,7 +193,6 @@ CGImageRef qt_mac_create_imagemask(const QPixmap &pixmap, const QRectF &sr)
|
||||
|
||||
//conversion
|
||||
inline static float qt_mac_convert_color_to_cg(int c) { return ((float)c * 1000 / 255) / 1000; }
|
||||
inline static int qt_mac_convert_color_from_cg(float c) { return qRound(c * 255); }
|
||||
CGAffineTransform qt_mac_convert_transform_to_cg(const QTransform &t) {
|
||||
return CGAffineTransformMake(t.m11(), t.m12(), t.m21(), t.m22(), t.dx(), t.dy());
|
||||
}
|
||||
@ -974,11 +973,6 @@ void QCoreGraphicsPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, co
|
||||
d->restoreGraphicsState();
|
||||
}
|
||||
|
||||
static void drawImageReleaseData (void *info, const void *, size_t)
|
||||
{
|
||||
delete static_cast<QImage *>(info);
|
||||
}
|
||||
|
||||
void QCoreGraphicsPaintEngine::drawImage(const QRectF &r, const QImage &img, const QRectF &sr,
|
||||
Qt::ImageConversionFlags flags)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user