Final batch of GC cleanups (for the forseeable future).

This commit is contained in:
rfm 2024-07-25 17:11:34 +01:00
parent b49af95359
commit 28a6e6ebbd
7 changed files with 61 additions and 43 deletions

View file

@ -72,30 +72,30 @@ static Class concreteClass = 0;
+ (id) mapTableWithStrongToStrongObjects
{
return [self mapTableWithKeyOptions: NSPointerFunctionsObjectPersonality
valueOptions: NSPointerFunctionsObjectPersonality];
GSOnceMLog(@"Garbage Collection no longer supported."
@" Using +strongToStrongObjectsMapTable");
return [self strongToStrongObjectsMapTable];
}
+ (id) mapTableWithStrongToWeakObjects
{
return [self mapTableWithKeyOptions: NSPointerFunctionsObjectPersonality
valueOptions: NSPointerFunctionsObjectPersonality
| NSPointerFunctionsWeakMemory];
GSOnceMLog(@"Garbage Collection no longer supported."
@" Using +strongToWeakObjectsMapTable");
return [self strongToWeakObjectsMapTable];
}
+ (id) mapTableWithWeakToStrongObjects
{
return [self mapTableWithKeyOptions: NSPointerFunctionsObjectPersonality
| NSPointerFunctionsWeakMemory
valueOptions: NSPointerFunctionsObjectPersonality];
GSOnceMLog(@"Garbage Collection no longer supported."
@" Using +weakToStringObjectsMapTable");
return [self weakToStringObjectsMapTable];
}
+ (id) mapTableWithWeakToWeakObjects
{
return [self mapTableWithKeyOptions: NSPointerFunctionsObjectPersonality
| NSPointerFunctionsWeakMemory
valueOptions: NSPointerFunctionsObjectPersonality
| NSPointerFunctionsWeakMemory];
GSOnceMLog(@"Garbage Collection no longer supported."
@" Using +weakToWeakObjectsMapTable");
return [self weakToWeakObjectsMapTable];
}
+ (id) strongToStrongObjectsMapTable