Authored by Olivier Poitrey

Remove no longer necessary cleanMemory on app going to background as NSCache does this by itself

@@ -70,18 +70,6 @@ static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week @@ -70,18 +70,6 @@ static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week
70 selector:@selector(cleanDisk) 70 selector:@selector(cleanDisk)
71 name:UIApplicationWillTerminateNotification 71 name:UIApplicationWillTerminateNotification
72 object:nil]; 72 object:nil];
73 -  
74 -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0  
75 - UIDevice *device = [UIDevice currentDevice];  
76 - if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported)  
77 - {  
78 - // When in background, clean memory in order to have less chance to be killed  
79 - [[NSNotificationCenter defaultCenter] addObserver:self  
80 - selector:@selector(clearMemory)  
81 - name:UIApplicationDidEnterBackgroundNotification  
82 - object:nil];  
83 - }  
84 -#endif  
85 #endif 73 #endif
86 } 74 }
87 75