diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 74d0c0b..a308b6d 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -519,8 +519,8 @@ didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge } } -- (void)connection:(NSURLConnection *)__unused connection - didSendBodyData:(NSInteger)bytesWritten +- (void)connection:(NSURLConnection __unused *)connection + didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite { @@ -531,7 +531,7 @@ totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite } } -- (void)connection:(NSURLConnection *)__unused connection +- (void)connection:(NSURLConnection __unused *)connection didReceiveResponse:(NSURLResponse *)response { self.response = response; @@ -539,7 +539,7 @@ didReceiveResponse:(NSURLResponse *)response [self.outputStream open]; } -- (void)connection:(NSURLConnection *)__unused connection +- (void)connection:(NSURLConnection __unused *)connection didReceiveData:(NSData *)data { self.totalBytesRead += [data length]; @@ -556,7 +556,7 @@ didReceiveResponse:(NSURLResponse *)response } } -- (void)connectionDidFinishLoading:(NSURLConnection *)__unused connection { +- (void)connectionDidFinishLoading:(NSURLConnection __unused *)connection { self.responseData = [self.outputStream propertyForKey:NSStreamDataWrittenToMemoryStreamKey]; [self.outputStream close]; @@ -566,7 +566,7 @@ didReceiveResponse:(NSURLResponse *)response self.connection = nil; } -- (void)connection:(NSURLConnection *)__unused connection +- (void)connection:(NSURLConnection __unused *)connection didFailWithError:(NSError *)error { self.error = error;