Permalink
Browse files

Removed duplication

  • Loading branch information...
Luke Redpath
Luke Redpath committed Nov 26, 2009
1 parent d525776 commit 5ea39a8cb5cde007b90cbf0f9e05d819ded38b0a
Showing with 3 additions and 5 deletions.
  1. +3 −5 EGOCache.m
View
@@ -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.