From 3cec45a5e80fce0a42dc5f44be92b6d02ff3862b Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Wed, 19 Oct 2022 17:49:07 -0700 Subject: [PATCH] Remove redundant applicationWillTerminate notification AppDelegate already does the exact same thing. --- Signal/src/util/MainAppContext.m | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Signal/src/util/MainAppContext.m b/Signal/src/util/MainAppContext.m index b8022cfbbb..d3966f25a4 100644 --- a/Signal/src/util/MainAppContext.m +++ b/Signal/src/util/MainAppContext.m @@ -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