未验证 提交 08b61ce5 编写于 作者: C Chris Bracken 提交者: GitHub

Delete unused decode UTF-8, JSON functions (#18360)

These were added in 7e5d6351 for use in
_handleNavigationMessage. That function was deleted in
f37aafd4, 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 6179ac63, and were applied to
these two methods, I suspect unintentionally.

In any case, they appear entirely unused at present.
上级 0b410094
......@@ -7,16 +7,6 @@
// @dart = 2.6
part of dart.ui;
// ignore: unused_element
String _decodeUTF8(ByteData message) {
return message != null ? utf8.decoder.convert(message.buffer.asUint8List()) : null;
}
// ignore: unused_element
dynamic _decodeJSON(String message) {
return message != null ? json.decode(message) : null;
}
@pragma('vm:entry-point')
// ignore: unused_element
void _updateWindowMetrics(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册