Skip to content
Browse files

Removed duplication

  • Loading branch information...
1 parent d525776 commit 5ea39a8cb5cde007b90cbf0f9e05d819ded38b0a Luke Redpath committed Nov 26, 2009
Showing with 3 additions and 5 deletions.
  1. +3 −5 EGOCache.m
View
8 EGOCache.m
@@ -77,14 +77,12 @@ - (void)clearCache {
for(NSString* key in cacheDictionary) {
[self removeItemFromCache:key];
}
- [[NSUserDefaults standardUserDefaults] setObject:cacheDictionary forKey:@"EGOCache"];
- [[NSUserDefaults standardUserDefaults] synchronize];
+ [self saveCacheDictionary];
}
- (void)clearCache:(NSString*)key {
- [self removeItemFromCache:key]
- [[NSUserDefaults standardUserDefaults] setObject:cacheDictionary forKey:@"EGOCache"];
- [[NSUserDefaults standardUserDefaults] synchronize];
+ [self removeItemFromCache:key];
+ [self saveCacheDictionary];
}
- (void)removeItemFromCache:(NSString*)key {

0 comments on commit 5ea39a8

Please sign in to comment.
Something went wrong with that request. Please try again.