mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Final batch of GC cleanups (for the forseeable future).
This commit is contained in:
parent
b49af95359
commit
28a6e6ebbd
7 changed files with 61 additions and 43 deletions
|
@ -72,8 +72,9 @@ static Class concreteClass = 0;
|
|||
|
||||
+ (id) hashTableWithWeakObjects
|
||||
{
|
||||
return [self hashTableWithOptions:
|
||||
NSPointerFunctionsObjectPersonality | NSPointerFunctionsWeakMemory];
|
||||
GSOnceMLog(@"Garbage Collection no longer supported."
|
||||
@" Using +weakObjectsHashTable");
|
||||
return [self weakObjectsHashTable];
|
||||
}
|
||||
|
||||
+ (id) weakObjectsHashTable
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -204,12 +204,16 @@ static Class concreteClass = Nil;
|
|||
|
||||
+ (id) pointerArrayWithStrongObjects
|
||||
{
|
||||
return [self pointerArrayWithOptions: NSPointerFunctionsStrongMemory];
|
||||
GSOnceMLog(@"Garbage Collection no longer supported."
|
||||
@" Using +strongObjectsPointerArray");
|
||||
return [self strongObjectsPointerArray];
|
||||
}
|
||||
|
||||
+ (id) pointerArrayWithWeakObjects
|
||||
{
|
||||
return [self pointerArrayWithOptions: NSPointerFunctionsWeakMemory];
|
||||
GSOnceMLog(@"Garbage Collection no longer supported."
|
||||
@" Using +weakObjectsPointerArray");
|
||||
return [self weakObjectsPointerArray];
|
||||
}
|
||||
|
||||
- (NSArray*) allObjects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue