Skip to content

Commit 7d023e8

Browse files
authored
Remove outdated unused element suppressions (flutter#28775)
Fixes flutter#35164
1 parent eb94e4f commit 7d023e8

File tree

4 files changed

+3
-22
lines changed

4 files changed

+3
-22
lines changed

lib/ui/annotations.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +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-
// TODO(dnfield): Remove unused_import ignores when https://github.com/dart-lang/sdk/issues/35164 is resolved.
6-
75

86
// @dart = 2.12
97
part of dart.ui;

lib/ui/hooks.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +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-
// TODO(dnfield): Remove unused_import ignores when https://github.com/dart-lang/sdk/issues/35164 is resolved.
6-
75

86
// @dart = 2.12
97
part of dart.ui;
@@ -53,78 +51,65 @@ void _updateWindowMetrics(
5351
typedef _LocaleClosure = String Function();
5452

5553
@pragma('vm:entry-point')
56-
// ignore: unused_element
5754
_LocaleClosure? _getLocaleClosure() => PlatformDispatcher.instance._localeClosure;
5855

5956
@pragma('vm:entry-point')
60-
// ignore: unused_element
6157
void _updateLocales(List<String> locales) {
6258
PlatformDispatcher.instance._updateLocales(locales);
6359
}
6460

6561
@pragma('vm:entry-point')
66-
// ignore: unused_element
6762
void _updateUserSettingsData(String jsonData) {
6863
PlatformDispatcher.instance._updateUserSettingsData(jsonData);
6964
}
7065

7166
@pragma('vm:entry-point')
72-
// ignore: unused_element
7367
void _updateLifecycleState(String state) {
7468
PlatformDispatcher.instance._updateLifecycleState(state);
7569
}
7670

7771
@pragma('vm:entry-point')
78-
// ignore: unused_element
7972
void _updateSemanticsEnabled(bool enabled) {
8073
PlatformDispatcher.instance._updateSemanticsEnabled(enabled);
8174
}
8275

8376
@pragma('vm:entry-point')
84-
// ignore: unused_element
8577
void _updateAccessibilityFeatures(int values) {
8678
PlatformDispatcher.instance._updateAccessibilityFeatures(values);
8779
}
8880

8981
@pragma('vm:entry-point')
90-
// ignore: unused_element
9182
void _dispatchPlatformMessage(String name, ByteData? data, int responseId) {
9283
PlatformDispatcher.instance._dispatchPlatformMessage(name, data, responseId);
9384
}
9485

9586
@pragma('vm:entry-point')
96-
// ignore: unused_element
9787
void _dispatchPointerDataPacket(ByteData packet) {
9888
PlatformDispatcher.instance._dispatchPointerDataPacket(packet);
9989
}
10090

10191
@pragma('vm:entry-point')
102-
// ignore: unused_element
10392
void _dispatchKeyData(ByteData packet, int responseId) {
10493
PlatformDispatcher.instance._dispatchKeyData(packet, responseId);
10594
}
10695

10796
@pragma('vm:entry-point')
108-
// ignore: unused_element
10997
void _dispatchSemanticsAction(int id, int action, ByteData? args) {
11098
PlatformDispatcher.instance._dispatchSemanticsAction(id, action, args);
11199
}
112100

113101
@pragma('vm:entry-point')
114-
// ignore: unused_element
115102
void _beginFrame(int microseconds, int frameNumber) {
116103
PlatformDispatcher.instance._beginFrame(microseconds);
117104
PlatformDispatcher.instance._updateFrameData(frameNumber);
118105
}
119106

120107
@pragma('vm:entry-point')
121-
// ignore: unused_element
122108
void _reportTimings(List<int> timings) {
123109
PlatformDispatcher.instance._reportTimings(timings);
124110
}
125111

126112
@pragma('vm:entry-point')
127-
// ignore: unused_element
128113
void _drawFrame() {
129114
PlatformDispatcher.instance._drawFrame();
130115
}
@@ -133,7 +118,6 @@ void _drawFrame() {
133118
typedef _ListStringArgFunction(List<String> args);
134119

135120
@pragma('vm:entry-point')
136-
// ignore: unused_element
137121
void _runMainZoned(Function startMainIsolateFunction,
138122
Function userMainFunction,
139123
List<String> args) {
@@ -246,7 +230,6 @@ bool _isLoopback(String host) {
246230
/// Zone override with 'flutter.io.allow_http' takes first priority.
247231
/// If zone override is not provided, engine setting is checked.
248232
@pragma('vm:entry-point')
249-
// ignore: unused_element
250233
void Function(Uri) _getHttpConnectionHookClosure(bool mayInsecurelyConnectToAllDomains) {
251234
return (Uri uri) {
252235
final dynamic zoneOverride = Zone.current[#flutter.io.allow_http];

lib/ui/natives.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ Function? _getCallbackFromHandle(int handle) native 'GetCallbackFromHandle';
8282
int? _isolateId; // ignore: unused_element
8383

8484
@pragma('vm:entry-point')
85-
Function _getPrintClosure() => _print; // ignore: unused_element
85+
Function _getPrintClosure() => _print;
8686
@pragma('vm:entry-point')
87-
Function _getScheduleMicrotaskClosure() => _scheduleMicrotask; // ignore: unused_element
87+
Function _getScheduleMicrotaskClosure() => _scheduleMicrotask;

runtime/fixtures/runtime_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class _PluginRegistrant {
126126

127127

128128
@pragma('vm:entry-point')
129-
void mainForPluginRegistrantTest() { // ignore: unused_element
129+
void mainForPluginRegistrantTest() {
130130
if (didCallRegistrantBeforeEntrypoint) {
131131
passMessage('_PluginRegistrant.register() was called');
132132
} else {

0 commit comments

Comments
 (0)