Revert "Added application callback" (flutter/engine#5377)

* Revert "Added application callback (#5369)"

This reverts commit c126c9ecdf6e4fb9fef9831d23882d89dde9b5b1.
This commit is contained in:
Brandon Parrish 2018-05-25 11:29:11 -07:00 committed by GitHub
parent 0f97c842e4
commit 2a96319ea7
2 changed files with 0 additions and 23 deletions

View File

@ -146,15 +146,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (BOOL)application:(UIApplication*)application
performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
/**
Called if this plugin has been registered for `UIApplicationDelegate` callbacks.
- Returns: `YES` if this plugin handles the request.
*/
- (BOOL)application:(UIApplication*)application
continueUserActivity:(NSUserActivity*)userActivity
restorationHandler:(void (^)(NSArray*))restorationHandler;
@end
/**

View File

@ -235,20 +235,6 @@
}
}
- (void)application:(UIApplication*)application
continueUserActivity:(NSUserActivity*)userActivity
restorationHandler:(void (^)(NSArray*))restorationHandler {
for (id<FlutterPlugin> plugin in _pluginDelegates) {
if ([plugin respondsToSelector:_cmd]) {
if ([plugin application:application
continueUserActivity:userActivty
restorationHandler:restorationHandler]) {
return;
}
}
}
}
// TODO(xster): move when doing https://github.com/flutter/flutter/issues/3671.
- (NSObject<FlutterBinaryMessenger>*)binaryMessenger {
UIViewController* rootViewController = _window.rootViewController;