Skip to content

Commit c0501cb

Browse files
authored
remove useless method (#14544)
1 parent 0fcadb9 commit c0501cb

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

Crashlytics/Crashlytics/Components/FIRCLSApplication.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ UIApplication* FIRCLSApplicationSharedInstance(void);
8383
id FIRCLSApplicationSharedInstance(void);
8484
#endif
8585

86-
void FIRCLSApplicationOpenURL(NSURL* url,
87-
NSExtensionContext* extensionContext,
88-
void (^completionBlock)(BOOL success));
89-
9086
id<NSObject> FIRCLSApplicationBeginActivity(NSActivityOptions options, NSString* reason);
9187
void FIRCLSApplicationEndActivity(id<NSObject> activity);
9288

Crashlytics/Crashlytics/Components/FIRCLSApplication.m

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -155,32 +155,6 @@ id FIRCLSApplicationSharedInstance(void) {
155155
}
156156
#endif
157157

158-
void FIRCLSApplicationOpenURL(NSURL* url,
159-
NSExtensionContext* extensionContext,
160-
void (^completionBlock)(BOOL success)) {
161-
if (extensionContext) {
162-
[extensionContext openURL:url completionHandler:completionBlock];
163-
return;
164-
}
165-
166-
BOOL result = NO;
167-
168-
#if TARGET_OS_IOS
169-
// What's going on here is the value returned is a scalar, but we really need an object to
170-
// call this dynamically. Hoops must be jumped.
171-
NSInvocationOperation* op =
172-
[[NSInvocationOperation alloc] initWithTarget:FIRCLSApplicationSharedInstance()
173-
selector:@selector(openURL:)
174-
object:url];
175-
[op start];
176-
[op.result getValue:&result];
177-
#elif CLS_TARGET_OS_OSX
178-
result = [[NSClassFromString(@"NSWorkspace") sharedWorkspace] openURL:url];
179-
#endif
180-
181-
completionBlock(result);
182-
}
183-
184158
id<NSObject> FIRCLSApplicationBeginActivity(NSActivityOptions options, NSString* reason) {
185159
if ([[NSProcessInfo processInfo] respondsToSelector:@selector(beginActivityWithOptions:
186160
reason:)]) {

0 commit comments

Comments
 (0)