Skip to content

Commit

Permalink
Update to SDWebImage#732 to fix misspell (completion instead of compl…
Browse files Browse the repository at this point in the history
…etition)
  • Loading branch information
bpoplauschi authored and devedup committed Sep 10, 2014
1 parent bff6dd7 commit 46ec285
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SDWebImage/SDImageCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions SDWebImage/SDImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -316,18 +316,18 @@ - (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(void (^)(UIImage *im
}

- (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;
Expand Down

0 comments on commit 46ec285

Please sign in to comment.