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

Commit c5841c5

Browse files
authored
Remove unimplemented API call saveCompilationTrace (#43656)
Fixes flutter/flutter#59205
1 parent 601f0c1 commit c5841c5

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

lib/ui/natives.dart

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,6 @@ Future<developer.ServiceExtensionResponse> _getImpellerEnabled(
8585

8686
const bool _kReleaseMode = bool.fromEnvironment('dart.vm.product');
8787

88-
/// Returns runtime Dart compilation trace as a UTF-8 encoded memory buffer.
89-
///
90-
/// The buffer contains a list of symbols compiled by the Dart JIT at runtime up
91-
/// to the point when this function was called. This list can be saved to a text
92-
/// file and passed to tools such as `flutter build` or Dart `gen_snapshot` in
93-
/// order to pre-compile this code offline.
94-
///
95-
/// The list has one symbol per line of the following format:
96-
/// `<namespace>,<class>,<symbol>\n`.
97-
///
98-
/// Here are some examples:
99-
///
100-
/// ```csv
101-
/// dart:core,Duration,get:inMilliseconds
102-
/// package:flutter/src/widgets/binding.dart,::,runApp
103-
/// file:///.../my_app.dart,::,main
104-
/// ```
105-
///
106-
/// This function is only effective in debug and dynamic modes, and will throw in AOT mode.
107-
List<int> saveCompilationTrace() {
108-
throw UnimplementedError();
109-
}
110-
11188
@Native<Void Function(Handle)>(symbol: 'DartRuntimeHooks::ScheduleMicrotask')
11289
external void _scheduleMicrotask(void Function() callback);
11390

lib/web_ui/lib/natives.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,3 @@ class DartPluginRegistrant {
1616
'`ensureInitialized` is not implemented on the web.');
1717
}
1818
}
19-
20-
List<int> saveCompilationTrace() {
21-
assert(
22-
throw UnimplementedError('saveCompilationTrace is not implemented on the web.'),
23-
);
24-
throw UnimplementedError();
25-
}

0 commit comments

Comments
 (0)