Skip to content

Commit 57b2e0f

Browse files
committed
Merge remote-tracking branch 'origin/master' into release/3.1.0
2 parents 8e3c0b1 + 1f68582 commit 57b2e0f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Leanplum-SDK/Classes/Leanplum.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -132,27 +132,6 @@ name = [LPVar define:[@#name stringByReplacingOccurrencesOfString:@"_" withStrin
132132
}
133133
/**@}*/
134134

135-
/**
136-
* Use this code in development mode (or in production), to use the advertising ID.
137-
* It's useful in development mode so that we remember your device even if you reinstall your app.
138-
* Since it's a MACRO, this won't get compiled into your app in production, and will be safe
139-
* to submit to Apple.
140-
*/
141-
#define LEANPLUM_USE_ADVERTISING_ID \
142-
_Pragma("clang diagnostic push") \
143-
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
144-
id LeanplumIdentifierManager = [NSClassFromString(@"ASIdentifierManager") \
145-
performSelector:NSSelectorFromString(@"sharedManager")]; \
146-
if (floor(NSFoundationVersionNumber) <= 1299 /* NSFoundationVersionNumber_iOS_9_x_Max */ || \
147-
[LeanplumIdentifierManager performSelector: \
148-
NSSelectorFromString(@"isAdvertisingTrackingEnabled")]) { \
149-
/* < iOS10 || isAdvertisingTrackingEnabled */ \
150-
[Leanplum setDeviceId:[[LeanplumIdentifierManager performSelector: \
151-
NSSelectorFromString(@"advertisingIdentifier")] \
152-
performSelector:NSSelectorFromString(@"UUIDString")]]; \
153-
} \
154-
_Pragma("clang diagnostic pop")
155-
156135
@class LPActionContext;
157136
@class SKPaymentTransaction;
158137
@class NSExtensionContext;

0 commit comments

Comments
 (0)