summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoahelpers.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoahelpers.mm')
-rw-r--r--src/plugins/platforms/cocoa/qcocoahelpers.mm10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.mm b/src/plugins/platforms/cocoa/qcocoahelpers.mm
index 21ffd8599f..c73587a821 100644
--- a/src/plugins/platforms/cocoa/qcocoahelpers.mm
+++ b/src/plugins/platforms/cocoa/qcocoahelpers.mm
@@ -158,16 +158,6 @@ NSImage *qt_mac_create_nsimage(const QIcon &icon)
return nsImage;
}
-HIMutableShapeRef qt_mac_QRegionToHIMutableShape(const QRegion &region)
-{
- HIMutableShapeRef shape = HIShapeCreateMutable();
- for (const QRect &rect : region) {
- CGRect cgRect = CGRectMake(rect.x(), rect.y(), rect.width(), rect.height());
- HIShapeUnionWithRect(shape, &cgRect);
- }
- return shape;
-}
-
QColor qt_mac_toQColor(const NSColor *color)
{
QColor qtColor;