From 2a96319ea7bca93e0fbafdb3547667e6d5b8e6cb Mon Sep 17 00:00:00 2001 From: Brandon Parrish Date: Fri, 25 May 2018 11:29:11 -0700 Subject: [PATCH] Revert "Added application callback" (flutter/engine#5377) * Revert "Added application callback (#5369)" This reverts commit c126c9ecdf6e4fb9fef9831d23882d89dde9b5b1. --- .../darwin/ios/framework/Headers/FlutterPlugin.h | 9 --------- .../ios/framework/Source/FlutterAppDelegate.mm | 14 -------------- 2 files changed, 23 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h b/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h index 1fe71dd8b2c..646ffa30d74 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h @@ -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 /** diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm index 0eddadab0de..a5132bf4ee4 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm @@ -235,20 +235,6 @@ } } -- (void)application:(UIApplication*)application - continueUserActivity:(NSUserActivity*)userActivity - restorationHandler:(void (^)(NSArray*))restorationHandler { - for (id 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*)binaryMessenger { UIViewController* rootViewController = _window.rootViewController;