diff options
author | NicoleYarroch <nicole@livio.io> | 2020-04-14 15:14:23 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-04-14 15:14:23 -0400 |
commit | e98a0e6c7c2745d076dc384d34ce59f888277303 (patch) | |
tree | 5d54f6c63c71d652af40b8c96a9ec0826088e092 | |
parent | ab7d4480caca30512fd6429a7b75307ffc4e54f9 (diff) | |
download | sdl_ios-e98a0e6c7c2745d076dc384d34ce59f888277303.tar.gz |
Removed nil check
-rw-r--r-- | SmartDeviceLink/SDLBackgroundTaskManager.h | 2 | ||||
-rw-r--r-- | SmartDeviceLink/SDLBackgroundTaskManager.m | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLBackgroundTaskManager.h b/SmartDeviceLink/SDLBackgroundTaskManager.h index 8a943781a..8de8f4595 100644 --- a/SmartDeviceLink/SDLBackgroundTaskManager.h +++ b/SmartDeviceLink/SDLBackgroundTaskManager.h @@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN /// Destroys the background task. - (void)endBackgroundTask; -/// Destroys the background task after cleanup has finished. This should only be called if you have subscribed to the `taskExpiringHandler` in order to do some cleanup before the background task is destroyed. +/// Destroys the background task after cleanup has finished. - (void)expiredTaskCleanupFinished; @end diff --git a/SmartDeviceLink/SDLBackgroundTaskManager.m b/SmartDeviceLink/SDLBackgroundTaskManager.m index 4b6e09a64..5c5a0f358 100644 --- a/SmartDeviceLink/SDLBackgroundTaskManager.m +++ b/SmartDeviceLink/SDLBackgroundTaskManager.m @@ -65,7 +65,6 @@ NS_ASSUME_NONNULL_BEGIN } - (void)expiredTaskCleanupFinished { - if (self.taskExpiringHandler == nil) { return; } SDLLogD(@"Ending background task %@ because clean up has finished.", self.backgroundTaskName); [self endBackgroundTask]; } |