Skip to content

Commit 4c5db40

Browse files
authored
Clean-up viewId casts in flutter_test (flutter#128256)
Follow-up to flutter/engine#42493.
1 parent ffab83e commit 4c5db40

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/flutter_test/lib/src/window.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,7 @@ class TestFlutterView implements FlutterView {
678678
final TestDisplay _display;
679679

680680
@override
681-
// TODO(goderbauer): Clean ignore and cast up after https://github.com/flutter/engine/pull/42493 lands.
682-
int get viewId => _view.viewId as int; // ignore: unnecessary_cast
681+
int get viewId => _view.viewId;
683682

684683
/// The device pixel ratio to use for this test.
685684
///
@@ -2089,8 +2088,7 @@ class TestWindow implements SingletonFlutterWindow {
20892088
'This feature was deprecated after v3.9.0-0.1.pre.'
20902089
)
20912090
@override
2092-
// TODO(goderbauer): Clean ignore and cast up after https://github.com/flutter/engine/pull/42493 lands.
2093-
int get viewId => _view.viewId as int; // ignore: unnecessary_cast
2091+
int get viewId => _view.viewId;
20942092

20952093
/// This gives us some grace time when the dart:ui side adds something to
20962094
/// [SingletonFlutterWindow], and makes things easier when we do rolls to give

0 commit comments

Comments
 (0)