We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d487bcc commit 4284b57Copy full SHA for 4284b57
SDWebImage/SDImageCache.m
@@ -70,18 +70,6 @@ - (id)initWithNamespace:(NSString *)ns
70
selector:@selector(cleanDisk)
71
name:UIApplicationWillTerminateNotification
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
86
}
87
0 commit comments