Skip to content
Browse files

Remove debug logging

  • Loading branch information...
1 parent 81bd482 commit f8855530e3e69b035acd4dcef51467d8e14ce4e1 @pokeb committed Nov 12, 2008
Showing with 3 additions and 5 deletions.
  1. +3 −5 ASINetworkQueue.m
View
8 ASINetworkQueue.m
@@ -130,7 +130,7 @@ - (void)addOperation:(NSOperation *)operation
if (showAccurateProgress) {
- //If this is a GET request and we want accurate progress, perform a HEAD request first to get the content-length
+ // If this is a GET request and we want accurate progress, perform a HEAD request first to get the content-length
if ([[request requestMethod] isEqualToString:@"GET"]) {
ASIHTTPRequest *HEADRequest = [[[ASIHTTPRequest alloc] initWithURL:[request url]] autorelease];
[HEADRequest setMainRequest:request];
@@ -140,7 +140,7 @@ - (void)addOperation:(NSOperation *)operation
[request setShouldResetProgressIndicators:NO];
[request addDependency:HEADRequest];
- //If we want to track uploading for this request accurately, we need to add the size of the post content to the total
+ // If we want to track uploading for this request accurately, we need to add the size of the post content to the total
} else if (uploadProgressDelegate) {
[request buildPostBody];
uploadProgressTotalBytes += [request postLength];
@@ -150,7 +150,7 @@ - (void)addOperation:(NSOperation *)operation
if (uploadProgressDelegate) {
- //For uploads requests, we always work out the total upload size before the queue starts, so we tell the request not to reset the progress indicator when starting each request
+ // For uploads requests, we always work out the total upload size before the queue starts, so we tell the request not to reset the progress indicator when starting each request
[request setShouldResetProgressIndicators:NO];
[request setUploadProgressDelegate:self];
} else {
@@ -233,7 +233,6 @@ - (void)incrementDownloadSizeBy:(unsigned long long)bytes
}
downloadProgressTotalBytes += bytes;
[self incrementDownloadProgressBy:0];
- NSLog(@"download size is now: %qu",downloadProgressTotalBytes);
}
- (void)incrementDownloadProgressBy:(unsigned long long)bytes
@@ -242,7 +241,6 @@ - (void)incrementDownloadProgressBy:(unsigned long long)bytes
return;
}
downloadProgressBytes += bytes;
- //NSLog(@"%qu/%qu",downloadProgressBytes,downloadProgressTotalBytes);
double progress = (downloadProgressBytes*1.0)/(downloadProgressTotalBytes*1.0);
[ASIHTTPRequest setProgress:progress forProgressIndicator:downloadProgressDelegate];
}

0 comments on commit f885553

Please sign in to comment.
Something went wrong with that request. Please try again.