Remove redundant code. Log domain names only when debug is enabled.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39647 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-04-08 10:23:05 +00:00
parent 57c5cec8a3
commit 2d97707302
2 changed files with 10 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2016-05-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSUserDefaults.m
Remove redundant code. Log domain names when debug is enabled.
2016-05-08 Riccardo Mottola <rm@gnu.org>
* Source/NSUserDefaults.m

View file

@ -2403,12 +2403,7 @@ static BOOL isLocked = NO;
= [[mgr directoryContentsAtPath: _defaultsDatabase] objectEnumerator];
while (nil != (domainName = [enumerator nextObject]))
{
NSString *domainExtension;
domainExtension = [domainName pathExtension];
if (nil == domainExtension)
continue;
if (NO == [domainExtension isEqual: @"plist"])
if (NO == [[domainName pathExtension] isEqual: @"plist"])
{
/* We only treat files with a .plist extension as being
* defaults domain files.
@ -2416,10 +2411,10 @@ static BOOL isLocked = NO;
continue;
}
domainName = [domainName stringByDeletingPathExtension];
if (nil == domainName)
{
continue;
}
/* We may what to know what domians are bing laoded.
*/
NSDebugMLog(@"domain name: %@", domainName);
/* We only look at files which do not represent domains in the
* _changedDomains list, since our internal information on the