[darwin] NSURL remove workaround for file urls
This commit is contained in:
committed by
Ivo van Dongen
parent
1c11aeb48a
commit
bb4c274a02
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user