From cbff7ca43c1ba02c31a8d9dc6486c87a057d82bd Mon Sep 17 00:00:00 2001 From: Amir Hardon Date: Tue, 15 Jan 2019 10:13:48 -0800 Subject: [PATCH] Cleanup temporary catchError. (#26454) This was added to make sure we don't crash before the engine is rolled with the system channel API addition and is no longer needed. --- .../flutter/lib/src/rendering/platform_view.dart | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/flutter/lib/src/rendering/platform_view.dart b/packages/flutter/lib/src/rendering/platform_view.dart index 438b2c76b0e..fef206d49e8 100644 --- a/packages/flutter/lib/src/rendering/platform_view.dart +++ b/packages/flutter/lib/src/rendering/platform_view.dart @@ -412,17 +412,7 @@ class _UiKitViewGestureRecognizer extends OneSequenceGestureRecognizer { @override void rejectGesture(int pointer) { - controller.rejectGesture().catchError((dynamic e) { - if (e is MissingPluginException) { - // We land the framework part of active gesture rejection before the engine part. - // There will be some commit range where we call rejectGesture from the framework and it - // isn't implemented in the engine, if that is the case we swallow the MissingPluginException. - // Once the engine support lands we will remove the enclosing catchError call. - // TODO(amirh): remove this once the engine supports active gesture rejection. - return; - } - throw e; - }); + controller.rejectGesture(); } void reset() {