Code cleanup.
This commit is contained in:
parent
1a917d8239
commit
51be4e298c
|
|
@ -76,7 +76,8 @@
|
|||
// Add last failed
|
||||
self.skippedCount++;
|
||||
}
|
||||
if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didPrefetchURL:finishedCount:totalCount:)]) {
|
||||
if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didPrefetchURL:finishedCount:totalCount:)])
|
||||
{
|
||||
[self.delegate imagePrefetcher:self
|
||||
didPrefetchURL:self.prefetchURLs[index]
|
||||
finishedCount:self.finishedCount
|
||||
|
|
@ -106,7 +107,8 @@
|
|||
#ifdef SD_VERBOSE
|
||||
NSLog(@"Finished prefetching (%d successful, %d skipped, timeElasped %.2f)", total - self.skippedCount, self.skippedCount, CFAbsoluteTimeGetCurrent() - self.startedTime);
|
||||
#endif
|
||||
if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didFinishWithTotalCount:skippedCount:)]) {
|
||||
if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didFinishWithTotalCount:skippedCount:)])
|
||||
{
|
||||
[self.delegate imagePrefetcher:self
|
||||
didFinishWithTotalCount:(total - self.skippedCount)
|
||||
skippedCount:self.skippedCount
|
||||
|
|
|
|||
Loading…
Reference in New Issue