Skip to content

Commit

Permalink
Removed duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Redpath committed Nov 26, 2009
1 parent d525776 commit 5ea39a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions EGOCache.m
Expand Up @@ -77,14 +77,12 @@ - (void)clearCache {
for(NSString* key in cacheDictionary) { for(NSString* key in cacheDictionary) {
[self removeItemFromCache:key]; [self removeItemFromCache:key];
} }
[[NSUserDefaults standardUserDefaults] setObject:cacheDictionary forKey:@"EGOCache"]; [self saveCacheDictionary];
[[NSUserDefaults standardUserDefaults] synchronize];
} }


- (void)clearCache:(NSString*)key { - (void)clearCache:(NSString*)key {
[self removeItemFromCache:key] [self removeItemFromCache:key];
[[NSUserDefaults standardUserDefaults] setObject:cacheDictionary forKey:@"EGOCache"]; [self saveCacheDictionary];
[[NSUserDefaults standardUserDefaults] synchronize];
} }


- (void)removeItemFromCache:(NSString*)key { - (void)removeItemFromCache:(NSString*)key {
Expand Down

0 comments on commit 5ea39a8

Please sign in to comment.