Update SDImageCache.m

Remove extra toDisk param
This commit is contained in:
DreamPiggy 2022-06-12 17:04:52 +08:00 committed by GitHub
parent 2fc131c44b
commit 754de4d7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -168,17 +168,12 @@ static NSString * _defaultDiskCacheDirectory;
[self storeImage:image imageData:nil forKey:key toDisk:toDisk completion:completionBlock];
}
- (void)storeImageData:(NSData *)imageData
forKey:(NSString *)key
completion:(SDWebImageNoParamsBlock)completionBlock {
[self storeImageData:imageData forKey:key toDisk:YES completion:completionBlock];
- (void)storeImageData:(nullable NSData *)imageData
forKey:(nullable NSString *)key
completion:(nullable SDWebImageNoParamsBlock)completionBlock {
[self storeImage:nil imageData:imageData forKey:key toDisk:YES completion:completionBlock];
}
- (void)storeImageData:(NSData *)imageData forKey:(NSString *)key toDisk:(BOOL)toDisk completion:(SDWebImageNoParamsBlock)completionBlock {
[self storeImage:nil imageData:imageData forKey:key toDisk:toDisk completion:completionBlock];
}
- (void)storeImage:(nullable UIImage *)image
imageData:(nullable NSData *)imageData
forKey:(nullable NSString *)key