Remove redundant applicationWillTerminate notification

AppDelegate already does the exact same thing.
This commit is contained in:
Jordan Rose 2022-10-19 17:49:07 -07:00
parent bd7d76f3b7
commit 3cec45a5e8

View File

@ -62,10 +62,6 @@ NS_ASSUME_NONNULL_BEGIN
selector:@selector(applicationDidBecomeActive:)
name:UIApplicationDidBecomeActiveNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(applicationWillTerminate:)
name:UIApplicationWillTerminateNotification
object:nil];
// We can't use OWSSingletonAssert() since it uses the app context.
@ -172,14 +168,6 @@ NS_ASSUME_NONNULL_BEGIN
[self runAppActiveBlocks];
}
- (void)applicationWillTerminate:(NSNotification *)notification
{
OWSAssertIsOnMainThread();
OWSLogInfo(@"");
OWSLogFlush();
}
#pragma mark -
- (BOOL)isMainApp