Skip to content

Commit af29d79

Browse files
Delete unreachable default clause. (#8303)
The Dart analyzer will soon be changed so that if the `default` clause of a `switch` statement is determined to be unreachable by the exhaustiveness checker, a new warning of type `unreachable_switch_default` will be issued. This parallels the behavior of the existing `unreachable_switch_case` warning, which is issued whenever a `case` clause of a `switch` statement is determined to be unreachable. For details see dart-lang/sdk#54575. This PR deletes an unreachable `default` clause from `devtools` now, to avoid a spurious warning when the analyzer change lands.
1 parent 9003e6a commit af29d79

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/devtools_app/lib/src/screens/inspector_v2/inspector_data_models.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ class LayoutProperties {
269269
paddingB: parentSize.height - (size.height + parentData.offset.dy),
270270
);
271271
case SizeType.widths:
272-
default:
273272
return (
274273
type: type,
275274
paddingA: parentData.offset.dx,

0 commit comments

Comments
 (0)