removed some uneeded code.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23047 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-06-11 01:17:10 +00:00
parent 3abcd4b201
commit cd5032d192
2 changed files with 5 additions and 14 deletions

View file

@ -1,3 +1,8 @@
2006-06-10 21:04 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormGormWrapperLoader.m: removed uneeded sound/image
logic. That is in the parent class.
2006-06-10 10:28 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: Removed code that does name/obj

View file

@ -157,16 +157,10 @@
if ([super loadFileWrapper: wrapper withDocument: doc])
{
GormClassManager *classManager = [document classManager];
NSArray *imageFileTypes = [NSImage imageFileTypes];
NSArray *soundFileTypes = [NSSound soundUnfilteredFileTypes];
NSMutableArray *images = [[NSMutableArray alloc] init];
NSMutableArray *sounds = [[NSMutableArray alloc] init];
key = nil;
fileWrappers = [wrapper fileWrappers];
// [ saveSCMDirectory: fileWrappers];
enumerator = [fileWrappers keyEnumerator];
while((key = [enumerator nextObject]) != nil)
{
@ -195,14 +189,6 @@
_(@"OK"), nil, nil);
}
}
else if ([imageFileTypes containsObject: [key pathExtension]])
{
[images addObject: [GormImage imageForData: fileData withFileName: key inWrapper: YES]];
}
else if ([soundFileTypes containsObject: [key pathExtension]])
{
[sounds addObject: [GormSound soundForData: fileData withFileName: key inWrapper: YES]];
}
}
}