Skip to content

Commit 02c7383

Browse files
pqCommit Queue
authored andcommitted
[CQ] cleanup some unnecessary ignores
(Discovered while working on: #35234) Change-Id: Iafd87176cf1e5df0cfa72e5f204ff8514243fbca Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404340 Reviewed-by: Paul Berry <[email protected]> Auto-Submit: Phil Quitslund <[email protected]> Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent bb7106a commit 02c7383

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

pkg/front_end/lib/src/kernel/body_builder.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9813,7 +9813,6 @@ class BodyBuilder extends StackListenerImpl
98139813
]));
98149814
reportIfNotEnabled(
98159815
libraryFeatures.patterns, question.charOffset, question.charCount);
9816-
// ignore: unused_local_variable
98179816
Pattern operand = toPattern(pop());
98189817
push(forest.createNullCheckPattern(question.charOffset, operand));
98199818
}

pkg/front_end/lib/src/source/source_constructor_builder.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ class DeclaredSourceConstructorBuilder
509509
_constructorTearOff ??
510510
// The case is need to ensure that the upper bound is [Member] and not
511511
// [GenericFunction].
512-
// ignore: unnecessary_cast
513512
_constructor as Member;
514513

515514
@override

pkg/front_end/lib/src/type_inference/inference_visitor.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9959,7 +9959,6 @@ class InferenceVisitorImpl extends InferenceVisitorBase
99599959
}
99609960

99619961
List<DartType> positionalTypes;
9962-
// ignore: UNUSED_LOCAL_VARIABLE
99639962
List<NamedType> namedTypes;
99649963

99659964
if (namedElements == null) {

0 commit comments

Comments
 (0)