From cd4b925448c828be7492e132e4b3690301fd30b7 Mon Sep 17 00:00:00 2001 From: Bogdan Poplauschi Date: Mon, 14 Jul 2014 18:29:45 +0300 Subject: [PATCH] Update to #732 to fix misspell (completion instead of completition) --- SDWebImage/SDImageCache.h | 4 ++-- SDWebImage/SDImageCache.m | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SDWebImage/SDImageCache.h b/SDWebImage/SDImageCache.h index 6fc571e..e823b65 100644 --- a/SDWebImage/SDImageCache.h +++ b/SDWebImage/SDImageCache.h @@ -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 diff --git a/SDWebImage/SDImageCache.m b/SDWebImage/SDImageCache.m index 85e4f9b..6ed20d5 100644 --- a/SDWebImage/SDImageCache.m +++ b/SDWebImage/SDImageCache.m @@ -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;