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.
This commit is contained in:
Amir Hardon 2019-01-15 10:13:48 -08:00 committed by GitHub
parent 3f3a829c88
commit cbff7ca43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {