mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Removed unused method. (flutter/engine#9919)
This commit is contained in:
parent
c3fcbdf15b
commit
8ef2e3aa28
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user