Skip to content

Commit 4effd9c

Browse files
authored
Remove temporary default case for PointerSignalKind (#128900)
This PR cleans up some prep that was added as part of flutter/flutter#120731 which was done to unblock flutter/engine#39637 Since the work done in that PR was reverted, this should be removed. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing.
1 parent d520b64 commit 4effd9c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/flutter/lib/src/gestures/converter.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,6 @@ abstract final class PointerEventConverter {
304304
scale: datum.scale,
305305
);
306306
case ui.PointerSignalKind.unknown:
307-
default: // ignore: no_default_cases, to allow adding a new [PointerSignalKind] - PointerStylusAuxiliaryAction
308-
// TODO(louisehsu): remove after landing engine PR https://github.com/flutter/engine/pull/39637
309-
// This branch should already have 'unknown' filtered out, but
310-
// we don't want to return anything or miss if someone adds a new
311-
// enumeration to PointerSignalKind.
312307
throw StateError('Unreachable');
313308
}
314309
}).whereType<PointerEvent>();

0 commit comments

Comments
 (0)