diff --git a/lib/ui/natives.dart b/lib/ui/natives.dart index ed32d16668b12..44ab3e6092e0f 100644 --- a/lib/ui/natives.dart +++ b/lib/ui/natives.dart @@ -85,29 +85,6 @@ Future _getImpellerEnabled( const bool _kReleaseMode = bool.fromEnvironment('dart.vm.product'); -/// Returns runtime Dart compilation trace as a UTF-8 encoded memory buffer. -/// -/// The buffer contains a list of symbols compiled by the Dart JIT at runtime up -/// to the point when this function was called. This list can be saved to a text -/// file and passed to tools such as `flutter build` or Dart `gen_snapshot` in -/// order to pre-compile this code offline. -/// -/// The list has one symbol per line of the following format: -/// `,,\n`. -/// -/// Here are some examples: -/// -/// ```csv -/// dart:core,Duration,get:inMilliseconds -/// package:flutter/src/widgets/binding.dart,::,runApp -/// file:///.../my_app.dart,::,main -/// ``` -/// -/// This function is only effective in debug and dynamic modes, and will throw in AOT mode. -List saveCompilationTrace() { - throw UnimplementedError(); -} - @Native(symbol: 'DartRuntimeHooks::ScheduleMicrotask') external void _scheduleMicrotask(void Function() callback); diff --git a/lib/web_ui/lib/natives.dart b/lib/web_ui/lib/natives.dart index 6cbde5e0080b5..37ba2b7efcae9 100644 --- a/lib/web_ui/lib/natives.dart +++ b/lib/web_ui/lib/natives.dart @@ -16,10 +16,3 @@ class DartPluginRegistrant { '`ensureInitialized` is not implemented on the web.'); } } - -List saveCompilationTrace() { - assert( - throw UnimplementedError('saveCompilationTrace is not implemented on the web.'), - ); - throw UnimplementedError(); -}