Remove now unused NSCurrentServerThreadKey key, previously it was used tor GSCurrentServer(), but it it is not needed anymore. Please use the function directly.

This commit is contained in:
Riccardo Mottola 2023-05-30 00:15:47 +02:00
parent fccf8771e6
commit 3341f6f149

View file

@ -62,7 +62,6 @@ static NSMapTable *windowmaps = NULL;
/* Lock for use when creating contexts */
static NSRecursiveLock *serverLock = nil;
static NSString *NSCurrentServerThreadKey;
static GSDisplayServer *currentServer = nil;
/** Returns the GSDisplayServer that created the interal
@ -130,7 +129,6 @@ GSCurrentServer(void)
serverLock = [NSRecursiveLock new];
_globalGSZone = NSDefaultMallocZone();
defaultServerClass = [GSDisplayServer class];
NSCurrentServerThreadKey = @"NSCurrentServerThreadKey";
windowmaps = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
NSNonOwnedPointerMapValueCallBacks, 20);
}