Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()

and deprecate it.  Searched for and removed obsolete references to
garbage collection in comments and documentation.
This commit is contained in:
Richard Frith-Macdonald 2022-02-17 10:08:18 +00:00
parent 6837924e60
commit c76ebf2962
61 changed files with 384 additions and 313 deletions

View file

@ -216,10 +216,10 @@ static Class NSURLHandleClass = 0;
{
id o = client;
IF_NO_GC([o retain];)
IF_NO_ARC([o retain];)
[_clients removeObjectIdenticalTo: o];
[_clients addObject: o];
IF_NO_GC([o release];)
IF_NO_ARC([o release];)
}
/**
@ -276,12 +276,12 @@ static Class NSURLHandleClass = 0;
*/
- (void) cancelLoadInBackground
{
IF_NO_GC([self retain];)
IF_NO_ARC([self retain];)
[_clients makeObjectsPerformSelector:
@selector(URLHandleResourceDidCancelLoading:)
withObject: self];
[self endLoadInBackground];
IF_NO_GC(RELEASE(self);)
IF_NO_ARC(RELEASE(self);)
}
- (void) dealloc
@ -620,7 +620,7 @@ static NSLock *fileLock = nil;
NS_DURING
{
obj = [fileCache objectForKey: path];
IF_NO_GC([[obj retain] autorelease];)
IF_NO_ARC([[obj retain] autorelease];)
}
NS_HANDLER
{
@ -715,7 +715,7 @@ static NSLock *fileLock = nil;
if (obj != nil)
{
DESTROY(self);
IF_NO_GC([obj retain];)
IF_NO_ARC([obj retain];)
}
}
NS_HANDLER