Permalink
Browse files

Make this cache purge look more sane.

  • Loading branch information...
1 parent 65e8a82 commit d751ccbd86dd437be4ec8ab8fdd570064f6a1624 @mbaltaks committed Aug 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ISO8601DateFormatter.m
@@ -45,10 +45,10 @@ + (void) initialize {
+ (void) purgeGlobalCaches {
NSMutableDictionary *oldCache = timeZonesByOffset;
timeZonesByOffset = nil;
+ #if __has_feature(objc_arc)
+ [oldCache removeAllObjects];
+ #endif
SAFE_ARC_RELEASE(oldCache);
- #if __has_feature(objc_arc)
- [oldCache removeAllObjects];
- #endif
}
- (NSCalendar *) makeCalendarWithDesiredConfiguration {

0 comments on commit d751ccb

Please sign in to comment.