Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[darwin] NSURL remove workaround for file urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Sep 30, 2016
1 parent f651bc8 commit 5bec721
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions platform/darwin/src/NSURL+MGLAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ - (nullable NSURL *)mgl_URLByStandardizingScheme {
// 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;
}
Expand Down

0 comments on commit 5bec721

Please sign in to comment.