mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Remove uneeded code
This commit is contained in:
parent
369e45ebe2
commit
8f5e702766
1 changed files with 2 additions and 10 deletions
|
@ -388,7 +388,6 @@ static NSLock *_fontCollectionLock = nil;
|
|||
{
|
||||
[fc _setName: NSFontCollectionAllFonts];
|
||||
[fc _writeToFile];
|
||||
[NSFontCollection _loadAvailableFontCollections];
|
||||
}
|
||||
}
|
||||
return fc;
|
||||
|
@ -408,8 +407,7 @@ static NSLock *_fontCollectionLock = nil;
|
|||
error: (NSError **)error
|
||||
{
|
||||
BOOL rv = [collection _writeToFile];
|
||||
[NSFontCollection _loadAvailableFontCollections];
|
||||
return rv;
|
||||
return rv;
|
||||
}
|
||||
|
||||
+ (BOOL) hideFontCollectionWithName: (NSFontCollectionName)name
|
||||
|
@ -418,7 +416,6 @@ static NSLock *_fontCollectionLock = nil;
|
|||
{
|
||||
NSFontCollection *collection = [_availableFontCollections objectForKey: name];
|
||||
BOOL rv = [collection _removeFile];
|
||||
[NSFontCollection _loadAvailableFontCollections];
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -435,8 +432,7 @@ static NSLock *_fontCollectionLock = nil;
|
|||
[collection _setName: name];
|
||||
[collection _writeToFile];
|
||||
}
|
||||
[NSFontCollection _loadAvailableFontCollections];
|
||||
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -455,10 +451,6 @@ static NSLock *_fontCollectionLock = nil;
|
|||
fc = [[NSFontCollection alloc] init];
|
||||
[fc _setName: name];
|
||||
rv = [fc _writeToFile];
|
||||
if (rv == YES)
|
||||
{
|
||||
[NSFontCollection _loadAvailableFontCollections];
|
||||
}
|
||||
}
|
||||
return fc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue