Skip to content

Commit 5d39587

Browse files
committed
remove dead code in OneSignalTracker
1 parent 73ce821 commit 5d39587

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignalTracker.m

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ + (NSString *)mExternalIdAuthToken;
5050

5151
@implementation OneSignalTracker
5252

53-
static UIBackgroundTaskIdentifier focusBackgroundTask;
5453
static NSTimeInterval lastOpenedTime;
5554
static BOOL lastOnFocusWasToBackground = YES;
5655

5756
+ (void)resetLocals {
5857
[OSFocusTimeProcessorFactory resetUnsentActiveTime];
59-
focusBackgroundTask = 0;
6058
lastOpenedTime = 0;
6159
lastOnFocusWasToBackground = YES;
6260
}
@@ -65,17 +63,6 @@ + (void)setLastOpenedTime:(NSTimeInterval)lastOpened {
6563
lastOpenedTime = lastOpened;
6664
}
6765

68-
+ (void)beginBackgroundFocusTask {
69-
focusBackgroundTask = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^{
70-
[OneSignalTracker endBackgroundFocusTask];
71-
}];
72-
}
73-
74-
+ (void)endBackgroundFocusTask {
75-
[[UIApplication sharedApplication] endBackgroundTask: focusBackgroundTask];
76-
focusBackgroundTask = UIBackgroundTaskInvalid;
77-
}
78-
7966
+ (void)onFocus:(BOOL)toBackground {
8067
// return if the user has not granted privacy permissions
8168
if ([OSPrivacyConsentController requiresUserPrivacyConsent])

0 commit comments

Comments
 (0)