diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2016-09-13 11:44:34 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2016-09-18 11:38:41 +0000 |
commit | e419403ebf98c6c0524d4db664caca36052c1fc9 (patch) | |
tree | 05a45046c7323742b4709f1cb9e93d62965cc073 /src/plugins/platforms/cocoa | |
parent | d58d7a5376ccee53544e5141e442350ba4ad8089 (diff) |
macOS: Remove unused function qt_mac_QRegionToHIMutableShape
Code using it was removed in a198ce8d.
Change-Id: I841f55768da080fbc87e0f2d9394cdc0a22e500e
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoahelpers.h | 3 | ||||
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoahelpers.mm | 10 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.h b/src/plugins/platforms/cocoa/qcocoahelpers.h index 272b443b68..7ce2d1a7ae 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.h +++ b/src/plugins/platforms/cocoa/qcocoahelpers.h @@ -83,9 +83,6 @@ QColor qt_mac_toQColor(CGColorRef color); QBrush qt_mac_toQBrush(CGColorRef color); QBrush qt_mac_toQBrush(const NSColor *color, QPalette::ColorGroup colorGroup = QPalette::Normal); -// Creates a mutable shape, it's the caller's responsibility to release. -HIMutableShapeRef qt_mac_QRegionToHIMutableShape(const QRegion ®ion); - OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage); NSDragOperation qt_mac_mapDropAction(Qt::DropAction action); 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 ®ion) -{ - 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; |