Remove unused enableObservatory flag. (#158202)

I checked google3 as well and couldn't find any reference.
This commit is contained in:
Matan Lurey 2024-11-05 15:49:01 -08:00 committed by GitHub
parent 0b6f99769d
commit c6dea5e4b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,8 +54,6 @@ FlutterPlatform installHook({
required String shellPath,
required DebuggingOptions debuggingOptions,
TestWatcher? watcher,
// TODO(bkonyi): remove after roll into google3.
bool enableObservatory = false,
bool enableVmService = false,
bool machine = false,
String? precompiledDillPath,
@ -73,7 +71,7 @@ FlutterPlatform installHook({
TestCompilerNativeAssetsBuilder? nativeAssetsBuilder,
BuildInfo? buildInfo,
}) {
assert(enableVmService || enableObservatory || (!debuggingOptions.startPaused && debuggingOptions.hostVmServicePort == null));
assert(enableVmService || (!debuggingOptions.startPaused && debuggingOptions.hostVmServicePort == null));
// registerPlatformPlugin can be injected for testing since it's not very mock-friendly.
platformPluginRegistration ??= (FlutterPlatform platform) {
@ -89,7 +87,7 @@ FlutterPlatform installHook({
debuggingOptions: debuggingOptions,
watcher: watcher,
machine: machine,
enableVmService: enableVmService || enableObservatory,
enableVmService: enableVmService,
host: _kHosts[serverType],
precompiledDillPath: precompiledDillPath,
precompiledDillFiles: precompiledDillFiles,