diff --git a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index 621f2431c957c..9e730ee35f7a5 100644 --- a/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -235,11 +235,6 @@ - (BOOL)isFirstResponder { - (void)dealloc { [_channel setMethodCallHandler:nil]; - if (_textInputContext) { - [_textInputContext deactivate]; - [_textInputContext discardMarkedText]; - _textInputContext = nil; - } } #pragma mark - Private