From 8ef2e3aa2865d4fbc9c93a70ecc9fc2a61fa0f28 Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Thu, 18 Jul 2019 11:28:41 -0700 Subject: [PATCH] Removed unused method. (flutter/engine#9919) --- .../Source/FlutterPluginAppLifeCycleDelegate.mm | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPluginAppLifeCycleDelegate.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPluginAppLifeCycleDelegate.mm index 37016945dfd..d13214801ce 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPluginAppLifeCycleDelegate.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPluginAppLifeCycleDelegate.mm @@ -99,16 +99,6 @@ static BOOL isPowerOfTwo(NSUInteger x) { return YES; } -// Returns the key window's rootViewController, if it's a FlutterViewController. -// Otherwise, returns nil. -- (FlutterViewController*)rootFlutterViewController { - UIViewController* viewController = [UIApplication sharedApplication].keyWindow.rootViewController; - if ([viewController isKindOfClass:[FlutterViewController class]]) { - return (FlutterViewController*)viewController; - } - return nil; -} - - (void)applicationDidEnterBackground:(UIApplication*)application { #if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG // The following keeps the Flutter session alive when the device screen locks