summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2016-09-29 18:58:42 +0200
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2016-09-30 14:57:26 +0200
commitbb4c274a02f959e568117eb0e4bdfa66af33794a (patch)
treeec2a2ca65c8d06c9966b1e5fb302c307aa6ad8ce
parent1c11aeb48a8e0605d54ff4194583bfdbd60737d6 (diff)
downloadqtlocation-mapboxgl-bb4c274a02f959e568117eb0e4bdfa66af33794a.tar.gz
[darwin] NSURL remove workaround for file urls
-rw-r--r--platform/darwin/src/NSURL+MGLAdditions.m7
1 files changed, 0 insertions, 7 deletions
diff --git a/platform/darwin/src/NSURL+MGLAdditions.m b/platform/darwin/src/NSURL+MGLAdditions.m
index 11b84ed8fa..09fdd5c880 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;
}