Monotone-Parent: 2fdf0ead0781ef2362dd389811d5db44ca4cc84a

Monotone-Revision: c91eef7edcfd08d414664c25a590b6268a7e58e2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-29T04:19:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-11-29 04:19:32 +00:00
parent 3821d1aa7f
commit b79a7e5a00
129 changed files with 4402 additions and 3316 deletions
-13
View File
@@ -75,10 +75,6 @@ static NSString *GCSGenericFolderTypeName = @"Container";
static const char *GCSPathColumnPattern = "c_path%i";
static NSCharacterSet *asciiAlphaNumericCS = nil;
#if defined(THREADSAFE)
static NSLock *lock;
#endif
+ (void) initialize
{
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
@@ -91,9 +87,6 @@ static NSLock *lock;
debugOn = [ud boolForKey: @"GCSFolderManagerDebugEnabled"];
debugSQLGen = [ud boolForKey: @"GCSFolderManagerSQLDebugEnabled"];
emptyArray = [[NSArray alloc] init];
#if defined(THREADSAFE)
lock = [NSLock new];
#endif
if (!asciiAlphaNumericCS)
{
asciiAlphaNumericCS
@@ -109,9 +102,6 @@ static NSLock *lock;
NSString *s;
NSURL *url;
#if defined(THREADSAFE)
[lock lock];
#endif
if (!fm)
{
s = [[NSUserDefaults standardUserDefaults] stringForKey:@"OCSFolderInfoURL"];
@@ -133,9 +123,6 @@ static NSLock *lock;
if (debugOn)
[self debugWithFormat:@"Note: setup default manager at: %@", url];
}
#if defined(THREADSAFE)
[lock unlock];
#endif
return fm;
}