Skip to content

Commit e177985

Browse files
committed
Remove unused function qt_mac_toCGImageMask
The last usage was removed in ca14d84 when we modernized window masking. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Ie7df930f36faf296f31c01cf2ac260607746966d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
1 parent 68a1a6d commit e177985

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/gui/painting/qcoregraphics.mm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ CGImageRef qt_mac_toCGImage(const QImage &inImage)
6060
return inImage.convertToFormat(QImage::Format_ARGB32_Premultiplied).toCGImage();
6161
}
6262

63-
CGImageRef qt_mac_toCGImageMask(const QImage &image)
64-
{
65-
static const auto deleter = [](void *image, const void *, size_t) { delete static_cast<QImage *>(image); };
66-
QCFType<CGDataProviderRef> dataProvider =
67-
CGDataProviderCreateWithData(new QImage(image), image.bits(),
68-
image.sizeInBytes(), deleter);
69-
70-
return CGImageMaskCreate(image.width(), image.height(), 8, image.depth(),
71-
image.bytesPerLine(), dataProvider, NULL, false);
72-
}
73-
7463
void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage)
7564
{
7665
CGContextSaveGState( inContext );

src/gui/painting/qcoregraphics_p.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ QT_BEGIN_NAMESPACE
6767

6868
#endif
6969
Q_GUI_EXPORT CGImageRef qt_mac_toCGImage(const QImage &qImage);
70-
Q_GUI_EXPORT CGImageRef qt_mac_toCGImageMask(const QImage &qImage);
7170
Q_GUI_EXPORT QImage qt_mac_toQImage(CGImageRef image);
7271

7372
Q_GUI_EXPORT void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage);

0 commit comments

Comments
 (0)