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
97part of dart.ui;
@@ -53,78 +51,65 @@ void _updateWindowMetrics(
5351typedef _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
6157void _updateLocales (List <String > locales) {
6258 PlatformDispatcher .instance._updateLocales (locales);
6359}
6460
6561@pragma ('vm:entry-point' )
66- // ignore: unused_element
6762void _updateUserSettingsData (String jsonData) {
6863 PlatformDispatcher .instance._updateUserSettingsData (jsonData);
6964}
7065
7166@pragma ('vm:entry-point' )
72- // ignore: unused_element
7367void _updateLifecycleState (String state) {
7468 PlatformDispatcher .instance._updateLifecycleState (state);
7569}
7670
7771@pragma ('vm:entry-point' )
78- // ignore: unused_element
7972void _updateSemanticsEnabled (bool enabled) {
8073 PlatformDispatcher .instance._updateSemanticsEnabled (enabled);
8174}
8275
8376@pragma ('vm:entry-point' )
84- // ignore: unused_element
8577void _updateAccessibilityFeatures (int values) {
8678 PlatformDispatcher .instance._updateAccessibilityFeatures (values);
8779}
8880
8981@pragma ('vm:entry-point' )
90- // ignore: unused_element
9182void _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
9787void _dispatchPointerDataPacket (ByteData packet) {
9888 PlatformDispatcher .instance._dispatchPointerDataPacket (packet);
9989}
10090
10191@pragma ('vm:entry-point' )
102- // ignore: unused_element
10392void _dispatchKeyData (ByteData packet, int responseId) {
10493 PlatformDispatcher .instance._dispatchKeyData (packet, responseId);
10594}
10695
10796@pragma ('vm:entry-point' )
108- // ignore: unused_element
10997void _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
115102void _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
122108void _reportTimings (List <int > timings) {
123109 PlatformDispatcher .instance._reportTimings (timings);
124110}
125111
126112@pragma ('vm:entry-point' )
127- // ignore: unused_element
128113void _drawFrame () {
129114 PlatformDispatcher .instance._drawFrame ();
130115}
@@ -133,7 +118,6 @@ void _drawFrame() {
133118typedef _ListStringArgFunction (List <String > args);
134119
135120@pragma ('vm:entry-point' )
136- // ignore: unused_element
137121void _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
250233void Function (Uri ) _getHttpConnectionHookClosure (bool mayInsecurelyConnectToAllDomains) {
251234 return (Uri uri) {
252235 final dynamic zoneOverride = Zone .current[#flutter.io.allow_http];
0 commit comments