Update to #732 to fix misspell (completion instead of completition)

This commit is contained in:
Bogdan Poplauschi 2014-07-14 18:29:45 +03:00
parent db252d3654
commit cd4b925448
2 changed files with 7 additions and 7 deletions

View File

@ -136,7 +136,7 @@ typedef void(^SDWebImageCheckCacheCompletionBlock)(BOOL isInCache);
* @param key The unique image cache key
* @param completionBlock An block that should be executed after the image has been removed (optional)
*/
- (void)removeImageForKey:(NSString *)key withCompletition:(void (^)())completion;
- (void)removeImageForKey:(NSString *)key withCompletion:(void (^)())completion;
/**
* Remove the image from memory and optionally disk cache synchronously
@ -153,7 +153,7 @@ typedef void(^SDWebImageCheckCacheCompletionBlock)(BOOL isInCache);
* @param fromDisk Also remove cache entry from disk if YES
* @param completionBlock An block that should be executed after the image has been removed (optional)
*/
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletition:(void (^)())completion;
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(void (^)())completion;
/**
* Clear all memory cached images

View File

@ -316,18 +316,18 @@ BOOL ImageDataHasPNGPreffix(NSData *data) {
}
- (void)removeImageForKey:(NSString *)key {
[self removeImageForKey:key withCompletition:nil];
[self removeImageForKey:key withCompletion:nil];
}
- (void)removeImageForKey:(NSString *)key withCompletition:(void (^)())completion {
[self removeImageForKey:key fromDisk:YES withCompletition:completion];
- (void)removeImageForKey:(NSString *)key withCompletion:(void (^)())completion {
[self removeImageForKey:key fromDisk:YES withCompletion:completion];
}
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk {
[self removeImageForKey:key fromDisk:fromDisk withCompletition:nil];
[self removeImageForKey:key fromDisk:fromDisk withCompletion:nil];
}
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletition:(void (^)())completion {
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(void (^)())completion {
if (key == nil) {
return;