From ee235383f83f34637cb5d3fcd6250c16ce58b22b Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Mon, 14 Aug 2023 14:09:22 -0700 Subject: [PATCH] Update `web_ui/**` to explicitly pass `--local-engine-host` to the `flutter` tool. (flutter/engine#44613) Partial work towards https://github.com/flutter/flutter/issues/132245. --- engine/src/flutter/lib/web_ui/dev/utils.dart | 23 -------------------- 1 file changed, 23 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/dev/utils.dart b/engine/src/flutter/lib/web_ui/dev/utils.dart index a51c78b2ec..78a79a96db 100644 --- a/engine/src/flutter/lib/web_ui/dev/utils.dart +++ b/engine/src/flutter/lib/web_ui/dev/utils.dart @@ -268,29 +268,6 @@ class ProcessOutput { final String stderr; } -Future runFlutter( - String workingDirectory, - List arguments, { - bool useSystemFlutter = false, -}) async { - final String executable = - useSystemFlutter ? 'flutter' : environment.flutterCommand.path; - arguments.add('--local-engine=host_debug_unopt'); - final int exitCode = await runProcess( - executable, - arguments, - workingDirectory: workingDirectory, - ); - - if (exitCode != 0) { - throw ToolExit( - 'ERROR: Failed to run $executable with ' - 'arguments $arguments. Exited with exit code $exitCode', - exitCode: exitCode, - ); - } -} - /// An exception related to an attempt to spawn a sub-process. @immutable class ProcessException implements Exception {