summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-12 12:52:26 -0400
committerFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-18 14:26:04 +0200
commit2217e05f5e52f0f5f2bbdacac6d51a191e5ae59f (patch)
tree3363c59c8db5e3a89e19a74dcfb400b00e0d9acf
parentfcb134cff1648f07a92849f6960fc645c3d62086 (diff)
downloadqtlocation-mapboxgl-2217e05f5e52f0f5f2bbdacac6d51a191e5ae59f.tar.gz
[macos] fixes #5956 remove dead code
-rw-r--r--platform/macos/src/NSColor+MGLAdditions.mm4
1 files changed, 0 insertions, 4 deletions
diff --git a/platform/macos/src/NSColor+MGLAdditions.mm b/platform/macos/src/NSColor+MGLAdditions.mm
index fc9ef8dafc..a75dc488fd 100644
--- a/platform/macos/src/NSColor+MGLAdditions.mm
+++ b/platform/macos/src/NSColor+MGLAdditions.mm
@@ -4,10 +4,6 @@
- (mbgl::Color)mbgl_color
{
- if (!self)
- {
- return { 0, 0, 0, 0 };
- }
CGFloat r, g, b, a;
[[self colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&r green:&g blue:&b alpha:&a];