Skip to content

Commit

Permalink
Merge pull request SDWebImage#1276 from arielelkin/patch-2
Browse files Browse the repository at this point in the history
SDWebImagePrefetcher: remove logging
  • Loading branch information
mythodeia committed Sep 29, 2015
2 parents 7e6bd60 + 6814af4 commit 6a28dc7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions SDWebImage/SDWebImagePrefetcher.m
Expand Up @@ -8,10 +8,6 @@

#import "SDWebImagePrefetcher.h"

#if (!defined(DEBUG) && !defined (SD_VERBOSE)) || defined(SD_LOG_NONE)
#define NSLog(...)
#endif

@interface SDWebImagePrefetcher ()

@property (strong, nonatomic) SDWebImageManager *manager;
Expand Down Expand Up @@ -65,14 +61,11 @@ - (void)startPrefetchingAtIndex:(NSUInteger)index {
if (self.progressBlock) {
self.progressBlock(self.finishedCount,[self.prefetchURLs count]);
}
NSLog(@"Prefetched %@ out of %@", @(self.finishedCount), @(self.prefetchURLs.count));
}
else {
if (self.progressBlock) {
self.progressBlock(self.finishedCount,[self.prefetchURLs count]);
}
NSLog(@"Prefetched %@ out of %@ (Failed)", @(self.finishedCount), @(self.prefetchURLs.count));

// Add last failed
self.skippedCount++;
}
Expand Down Expand Up @@ -101,7 +94,6 @@ - (void)startPrefetchingAtIndex:(NSUInteger)index {

- (void)reportStatus {
NSUInteger total = [self.prefetchURLs count];
NSLog(@"Finished prefetching (%@ successful, %@ skipped, timeElapsed %.2f)", @(total - self.skippedCount), @(self.skippedCount), CFAbsoluteTimeGetCurrent() - self.startedTime);
if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didFinishWithTotalCount:skippedCount:)]) {
[self.delegate imagePrefetcher:self
didFinishWithTotalCount:(total - self.skippedCount)
Expand Down

0 comments on commit 6a28dc7

Please sign in to comment.