Removed the synchronous methods `diskImageExistsForURL:` and `cachedImageExistsForURL:` from `SDWebImageManager`

This commit is contained in:
Bogdan Poplauschi 2016-09-23 20:42:22 +03:00
parent 712f497334
commit 84be05b867
2 changed files with 0 additions and 29 deletions

View File

@ -236,24 +236,6 @@ SDWebImageManager *manager = [SDWebImageManager sharedManager];
*/ */
- (BOOL)isRunning; - (BOOL)isRunning;
/**
* Check if image has already been cached
*
* @param url image url
*
* @return if the image was already cached
*/
- (BOOL)cachedImageExistsForURL:(nullable NSURL *)url;
/**
* Check if image has already been cached on disk only
*
* @param url image url
*
* @return if the image was already cached (disk only)
*/
- (BOOL)diskImageExistsForURL:(nullable NSURL *)url;
/** /**
* Async check if image has already been cached * Async check if image has already been cached
* *

View File

@ -66,17 +66,6 @@
} }
} }
- (BOOL)cachedImageExistsForURL:(nullable NSURL *)url {
NSString *key = [self cacheKeyForURL:url];
if ([self.imageCache imageFromMemoryCacheForKey:key] != nil) return YES;
return [self.imageCache diskImageExistsWithKey:key];
}
- (BOOL)diskImageExistsForURL:(nullable NSURL *)url {
NSString *key = [self cacheKeyForURL:url];
return [self.imageCache diskImageExistsWithKey:key];
}
- (void)cachedImageExistsForURL:(nullable NSURL *)url - (void)cachedImageExistsForURL:(nullable NSURL *)url
completion:(nullable SDWebImageCheckCacheCompletionBlock)completionBlock { completion:(nullable SDWebImageCheckCacheCompletionBlock)completionBlock {
NSString *key = [self cacheKeyForURL:url]; NSString *key = [self cacheKeyForURL:url];