From 6814af4adee26de8b754c218fda80016af375e6c Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Mon, 31 Aug 2015 10:49:33 +0200 Subject: [PATCH] SDWebImagePrefetcher: remove logging Remove macro that checks for DEBUG, SD_VERBOSE, and SD_LOG_NONE Remove calls to NSLog --- SDWebImage/SDWebImagePrefetcher.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/SDWebImage/SDWebImagePrefetcher.m b/SDWebImage/SDWebImagePrefetcher.m index 5fd483ba6..d243becd8 100644 --- a/SDWebImage/SDWebImagePrefetcher.m +++ b/SDWebImage/SDWebImagePrefetcher.m @@ -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; @@ -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++; } @@ -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)