From 7a40b3a70dd3a4ac1dfc8600cb0430708c7e2818 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Thu, 10 Mar 2022 12:34:36 -0800 Subject: [PATCH] Revert "Add a message when a key response takes too long. (#31945)" (flutter/engine#31962) This reverts commit 0aa006102ecbaf23b49d96014e7996e4d3ce7d84. --- .../ios/framework/Source/FlutterKeyboardManager.mm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyboardManager.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyboardManager.mm index d75e06536c..db6aeca077 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyboardManager.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyboardManager.mm @@ -7,7 +7,6 @@ #include "flutter/fml/platform/darwin/message_loop_darwin.h" static constexpr CFTimeInterval kDistantFuture = 1.0e10; -static constexpr CFTimeInterval kReasonableInterval = 2.0; @interface FlutterKeyboardManager () @@ -115,14 +114,7 @@ static constexpr CFTimeInterval kReasonableInterval = 2.0; // // We need to run in this mode so that UIKit doesn't give us new // events until we are done processing this one. - CFRunLoopRunResult result = CFRunLoopRunInMode( - fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode, kReasonableInterval, NO); - if (result == kCFRunLoopRunTimedOut) { - NSLog(@"Flutter framework failed to process a key event in a reasonable time. Continuing " - @"to wait."); - CFRunLoopRunInMode(fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode, kDistantFuture, NO); - NSLog(@"Flutter framework finally responded. Exiting nested event loop."); - } + CFRunLoopRunInMode(fml::MessageLoopDarwin::kMessageLoopCFRunLoopMode, kDistantFuture, NO); break; } case UIPressPhaseChanged: