diff --git a/Source/NSBundleAdditions.m b/Source/NSBundleAdditions.m index b7a763601..4b0c6d4f9 100644 --- a/Source/NSBundleAdditions.m +++ b/Source/NSBundleAdditions.m @@ -178,31 +178,6 @@ static const int currentVersion = 1; @implementation NSBundle (NSBundleAdditions) -- (NSString*) pathForImageResource: (NSString*)name -{ - NSString *ext = [name pathExtension]; - NSString *path = nil; - - if ((ext == nil) || [ext isEqualToString:@""]) - { - NSArray *types = [NSImage imageUnfilteredFileTypes]; - unsigned c = [types count]; - unsigned i; - - for (i = 0; path == nil && i < c; i++) - { - ext = [types objectAtIndex: i]; - path = [self pathForResource: name ofType: ext]; - } - } - else - { - name = [name stringByDeletingPathExtension]; - path = [self pathForResource: name ofType: ext]; - } - return path; -} - static Class gmodel_class(void) { @@ -418,31 +393,6 @@ Class gmodel_class(void) return nil; } -- (NSString *)pathForSoundResource:(NSString *)name -{ - NSString *ext = [name pathExtension]; - NSString *path = nil; - - if ((ext == nil) || [ext isEqualToString:@""]) - { - NSArray *types = [NSSound soundUnfilteredFileTypes]; - unsigned c = [types count]; - unsigned i; - - for (i = 0; path == nil && i < c; i++) - { - ext = [types objectAtIndex: i]; - path = [self pathForResource: name ofType: ext]; - } - } - else - { - name = [name stringByDeletingPathExtension]; - path = [self pathForResource: name ofType: ext]; - } - return path; -} - - (BOOL) loadNibFile: (NSString*)fileName externalNameTable: (NSDictionary*)context withZone: (NSZone*)zone