From bb4c274a02f959e568117eb0e4bdfa66af33794a Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Thu, 29 Sep 2016 18:58:42 +0200 Subject: [PATCH] [darwin] NSURL remove workaround for file urls --- platform/darwin/src/NSURL+MGLAdditions.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/platform/darwin/src/NSURL+MGLAdditions.m b/platform/darwin/src/NSURL+MGLAdditions.m index 11b84ed8f..09fdd5c88 100644 --- a/platform/darwin/src/NSURL+MGLAdditions.m +++ b/platform/darwin/src/NSURL+MGLAdditions.m @@ -7,13 +7,6 @@ // Relative file URL, already escaped (in order to create the NSURL). // Assume a relative path into the application’s resource folder. return [NSURL URLWithString:[@"asset://" stringByAppendingString:self.absoluteString]]; - } else if (self.fileURL) { - // Absolute file URL, so construct a new URL using the unescaped path. - NSURLComponents *components = [[NSURLComponents alloc] init]; - components.scheme = @"asset"; - components.host = @""; - components.path = self.path; - return components.URL; } return self; }