From 2f8b58fc77af77bd95493bb6308e2adbdca648dd Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Mon, 26 Sep 2011 10:14:46 -0500 Subject: [PATCH] Adding __unused designation to AFHTTPRequestOperation method implementation parameters as appropriate --- AFNetworking/AFHTTPRequestOperation.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index 680b161..7b17b42 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -113,7 +113,7 @@ static inline BOOL AFHTTPOperationStateTransitionIsValid(AFHTTPOperationState fr static NSThread *_networkRequestThread = nil; -+ (void)networkRequestThreadEntryPoint:(id)object { ++ (void)networkRequestThreadEntryPoint:(id)__unused object { do { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [[NSRunLoop currentRunLoop] run]; @@ -155,7 +155,7 @@ static NSThread *_networkRequestThread = nil; } } - AFHTTPRequestOperation *operation = [self operationWithRequest:mutableURLRequest completion:^(NSURLRequest *request, NSHTTPURLResponse *response, NSData *data, NSError *error) { + AFHTTPRequestOperation *operation = [self operationWithRequest:mutableURLRequest completion:^(NSURLRequest *request, NSHTTPURLResponse *response, __unused NSData *data, NSError *error) { if (completion) { completion(request, response, error); } @@ -320,7 +320,7 @@ static NSThread *_networkRequestThread = nil; #pragma mark - NSURLConnection -- (void)connection:(NSURLConnection *)connection +- (void)connection:(NSURLConnection *)__unused connection didReceiveResponse:(NSURLResponse *)response { self.response = (NSHTTPURLResponse *)response; @@ -335,7 +335,7 @@ didReceiveResponse:(NSURLResponse *)response } } -- (void)connection:(NSURLConnection *)connection +- (void)connection:(NSURLConnection *)__unused connection didReceiveData:(NSData *)data { self.totalBytesRead += [data length]; @@ -354,7 +354,7 @@ didReceiveResponse:(NSURLResponse *)response } } -- (void)connectionDidFinishLoading:(NSURLConnection *)connection { +- (void)connectionDidFinishLoading:(NSURLConnection *)__unused connection { if (self.outputStream) { [self.outputStream close]; } else { @@ -365,7 +365,7 @@ didReceiveResponse:(NSURLResponse *)response [self finish]; } -- (void)connection:(NSURLConnection *)connection +- (void)connection:(NSURLConnection *)__unused connection didFailWithError:(NSError *)error { self.error = error; @@ -379,8 +379,8 @@ didReceiveResponse:(NSURLResponse *)response [self finish]; } -- (void)connection:(NSURLConnection *)connection - didSendBodyData:(NSInteger)bytesWritten +- (void)connection:(NSURLConnection *)__unused connection + didSendBodyData:(NSInteger)__unused bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite { @@ -389,7 +389,7 @@ totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite } } -- (NSCachedURLResponse *)connection:(NSURLConnection *)connection +- (NSCachedURLResponse *)connection:(NSURLConnection *)__unused connection willCacheResponse:(NSCachedURLResponse *)cachedResponse { if ([self isCancelled]) {