Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 08b61ce

Browse files
authored
Delete unused decode UTF-8, JSON functions (#18360)
These were added in 7e5d635 for use in _handleNavigationMessage. That function was deleted in f37aafd, but the support methods were left in the code. `// ignore: unused` annotations were added to all private native entry points by dnfield (to work around what is arguably a bug) in 6179ac6, and were applied to these two methods, I suspect unintentionally. In any case, they appear entirely unused at present.
1 parent 0b41009 commit 08b61ce

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/ui/hooks.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77
// @dart = 2.6
88
part of dart.ui;
99

10-
// ignore: unused_element
11-
String _decodeUTF8(ByteData message) {
12-
return message != null ? utf8.decoder.convert(message.buffer.asUint8List()) : null;
13-
}
14-
15-
// ignore: unused_element
16-
dynamic _decodeJSON(String message) {
17-
return message != null ? json.decode(message) : null;
18-
}
19-
2010
@pragma('vm:entry-point')
2111
// ignore: unused_element
2212
void _updateWindowMetrics(

0 commit comments

Comments
 (0)