Unverified Commit 4f302dc1 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Remove unused no-build flag from the flutter run command (#37735)

The use-application-binary flag can be used to run a previously built
app package.
parent 38e3e109
......@@ -473,7 +473,6 @@ class RunCommand extends RunCommandBase {
final int result = await runner.run(
appStartedCompleter: appStartedTimeRecorder,
route: route,
shouldBuild: !runningWithPrebuiltApplication && argResults['build'],
);
if (result != 0) {
throwToolExit(null, exitCode: result);
......
......@@ -350,7 +350,6 @@ class FlutterDevice {
Future<int> runHot({
HotRunner hotRunner,
String route,
bool shouldBuild,
}) async {
final bool prebuiltMode = hotRunner.applicationBinary != null;
final String modeName = hotRunner.debuggingOptions.buildInfo.friendlyModeName;
......@@ -406,7 +405,6 @@ class FlutterDevice {
Future<int> runCold({
ColdRunner coldRunner,
String route,
bool shouldBuild = true,
}) async {
final TargetPlatform targetPlatform = await device.targetPlatform;
package = await ApplicationPackageFactory.instance.getPackageForPlatform(
......@@ -623,7 +621,6 @@ abstract class ResidentRunner {
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
bool shouldBuild = true,
});
Future<int> attach({
......
......@@ -110,7 +110,6 @@ class ResidentWebRunner extends ResidentRunner {
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
bool shouldBuild = true,
}) async {
final ApplicationPackage package = await ApplicationPackageFactory.instance.getPackageForPlatform(
TargetPlatform.web_javascript,
......
......@@ -49,7 +49,6 @@ class ColdRunner extends ResidentRunner {
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
bool shouldBuild = true,
}) async {
final bool prebuiltMode = applicationBinary != null;
if (!prebuiltMode) {
......@@ -66,7 +65,6 @@ class ColdRunner extends ResidentRunner {
final int result = await device.runCold(
coldRunner: this,
route: route,
shouldBuild: shouldBuild,
);
if (result != 0)
return result;
......
......@@ -238,7 +238,6 @@ class HotRunner extends ResidentRunner {
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
bool shouldBuild = true,
}) async {
if (!fs.isFileSync(mainPath)) {
String message = 'Tried to run $mainPath, but that file does not exist.';
......@@ -254,7 +253,6 @@ class HotRunner extends ResidentRunner {
final int result = await device.runHot(
hotRunner: this,
route: route,
shouldBuild: shouldBuild,
);
if (result != 0) {
return result;
......
......@@ -416,7 +416,6 @@ class TestRunner extends ResidentRunner {
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
bool shouldBuild = true,
}) async => null;
@override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment