Removed the synchronous methods `diskImageExistsForURL:` and `cachedImageExistsForURL:` from `SDWebImageManager`
This commit is contained in:
parent
712f497334
commit
84be05b867
|
@ -236,24 +236,6 @@ SDWebImageManager *manager = [SDWebImageManager sharedManager];
|
|||
*/
|
||||
- (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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
completion:(nullable SDWebImageCheckCacheCompletionBlock)completionBlock {
|
||||
NSString *key = [self cacheKeyForURL:url];
|
||||
|
|
Loading…
Reference in New Issue