Skip to content

Commit c4fda23

Browse files
authored
Remove outdated ignores from framework (#140465)
These were not ignoring anything (anymore).
1 parent e2e8bcb commit c4fda23

26 files changed

+11
-60
lines changed

dev/bots/test/analyze_snippet_code_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// found in the LICENSE file.
44

55
// we ignore these so that the format of the strings below matches what package:test prints, to make maintenance easier
6-
// ignore_for_file: avoid_escaping_inner_quotes
76
// ignore_for_file: use_raw_strings
87

98
import 'dart:io';

dev/integration_tests/android_semantics_testing/lib/src/tests/controls_page.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ class _SelectionControlsPageState extends State<SelectionControlsPage> {
6868
const Checkbox(
6969
key: checkbox2Key,
7070
value: false,
71-
// TODO(scheglov): Requires linter fix, https://github.com/dart-lang/sdk/issues/49596.
72-
// ignore: avoid_redundant_argument_values
7371
onChanged: null,
7472
),
7573
],

packages/flutter/lib/src/rendering/mouse_tracker.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// This library intentionally uses the LinkedHashMap constructor to declare that
6-
// entries will be ordered. Using collection literals for this requires casting the
7-
// resulting map, which has a runtime cost.
8-
// ignore_for_file: prefer_collection_literals
9-
105
import 'dart:collection' show LinkedHashMap;
116
import 'dart:ui';
127

packages/flutter/lib/src/semantics/binding.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// ignore: deprecated_member_use
65
import 'dart:ui' as ui show AccessibilityFeatures, SemanticsActionEvent, SemanticsUpdateBuilder;
76

87
import 'package:flutter/foundation.dart';
98
import 'package:flutter/services.dart';
109

1110
import 'debug.dart';
1211

13-
// ignore: deprecated_member_use
1412
export 'dart:ui' show AccessibilityFeatures, SemanticsActionEvent, SemanticsUpdateBuilder;
1513

1614
/// The glue between the semantics layer and the Flutter engine.

packages/flutter/lib/src/semantics/semantics.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// found in the LICENSE file.
44

55
import 'dart:math' as math;
6-
// ignore: deprecated_member_use
76
import 'dart:ui' show Offset, Rect, SemanticsAction, SemanticsFlag, SemanticsUpdate, SemanticsUpdateBuilder, StringAttribute, TextDirection;
87

98
import 'package:collection/collection.dart';

packages/flutter/lib/src/services/_background_isolate_binary_messenger_web.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import 'binding.dart';
66

7-
// ignore: avoid_classes_with_only_static_members
87
/// Stand-in for non-web platforms' [BackgroundIsolateBinaryMessenger].
98
class BackgroundIsolateBinaryMessenger {
109
/// Throws an [UnsupportedError].

packages/flutter/lib/src/widgets/_html_element_view_io.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// ignore_for_file: prefer_const_constructors_in_immutables
6-
// ignore_for_file: avoid_unused_constructor_parameters
7-
85
import 'framework.dart';
96
import 'platform_view.dart';
107

packages/flutter/lib/src/widgets/async.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ abstract class StreamBuilderBase<T, S> extends StatefulWidget {
9494

9595
/// State for [StreamBuilderBase].
9696
class _StreamBuilderBaseState<T, S> extends State<StreamBuilderBase<T, S>> {
97-
StreamSubscription<T>? _subscription; // ignore: cancel_subscriptions
97+
StreamSubscription<T>? _subscription;
9898
late S _summary;
9999

100100
@override

packages/flutter/lib/src/widgets/preferred_size.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ import 'framework.dart';
2121
/// than [Widget] as the type of their `child` property.
2222
///
2323
/// Use [PreferredSize] to give a preferred size to an arbitrary widget.
24-
// (We ignore `avoid_implementing_value_types` here because the superclass
25-
// doesn't really implement `operator ==`, it just overrides it to _prevent_ it
26-
// from being implemented, which is the exact opposite of the spirit of the
27-
// `avoid_implementing_value_types` lint.)
28-
// ignore: avoid_implementing_value_types
2924
abstract class PreferredSizeWidget implements Widget {
3025
/// The size this widget would prefer if it were otherwise unconstrained.
3126
///

packages/flutter/lib/src/widgets/widget_inspector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3380,7 +3380,7 @@ class _Location {
33803380
required this.file,
33813381
required this.line,
33823382
required this.column,
3383-
// ignore: unused_element, unused_element_parameter
3383+
// ignore: unused_element
33843384
this.name,
33853385
});
33863386

0 commit comments

Comments
 (0)