Skip to content

Commit

Permalink
remove unused firstBuildTime parameter in DevFS::update (#144576)
Browse files Browse the repository at this point in the history
The title says it all. This parameter is unused and serves no apparent purpose.
  • Loading branch information
andrewkolos authored Mar 5, 2024
1 parent 4e71b4d commit 4e6de2b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion packages/flutter_tools/lib/src/devfs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ class DevFS {
DevFSWriter? devFSWriter,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool fullRestart = false,
File? dartPluginRegistrant,
Expand Down
1 change: 0 additions & 1 deletion packages/flutter_tools/lib/src/isolated/devfs_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,6 @@ class WebDevFS implements DevFS {
DevFSWriter? devFSWriter,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool fullRestart = false,
String? projectRootPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class ResidentWebRunner extends ResidentRunner {

FlutterDevice? get device => flutterDevices.first;
final FlutterProject flutterProject;
DateTime? firstBuildTime;

// Used with the new compiler to generate a bootstrap file containing plugins
// and platform initialization.
Expand Down Expand Up @@ -241,7 +240,6 @@ class ResidentWebRunner extends ResidentRunner {
bool enableDevTools = false, // ignored, we don't yet support devtools for web
String? route,
}) async {
firstBuildTime = DateTime.now();
final ApplicationPackage? package = await ApplicationPackageFactory.instance!.getPackageForPlatform(
TargetPlatform.web_javascript,
buildInfo: debuggingOptions.buildInfo,
Expand Down Expand Up @@ -567,7 +565,6 @@ Please provide a valid TCP port (an integer between 0 and 65535, inclusive).
),
target: target,
bundle: assetBundle,
firstBuildTime: firstBuildTime,
bundleFirstUpload: isFirstUpload,
generator: device!.generator!,
fullRestart: fullRestart,
Expand Down
2 changes: 0 additions & 2 deletions packages/flutter_tools/lib/src/resident_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ class FlutterDevice {
required Uri mainUri,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool bundleDirty = false,
bool fullRestart = false,
Expand All @@ -574,7 +573,6 @@ class FlutterDevice {
mainUri: mainUri,
target: target,
bundle: bundle,
firstBuildTime: firstBuildTime,
bundleFirstUpload: bundleFirstUpload,
generator: generator!,
fullRestart: fullRestart,
Expand Down
4 changes: 0 additions & 4 deletions packages/flutter_tools/lib/src/run_hot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ class HotRunner extends ResidentRunner {

final Map<String, List<int>> benchmarkData = <String, List<int>>{};

DateTime? firstBuildTime;

String? _targetPlatform;
String? _sdkName;
bool? _emulator;
Expand Down Expand Up @@ -384,7 +382,6 @@ class HotRunner extends ResidentRunner {

final Stopwatch appStartedTimer = Stopwatch()..start();
final File mainFile = globals.fs.file(mainPath);
firstBuildTime = DateTime.now();

Duration totalCompileTime = Duration.zero;
Duration totalLaunchAppTime = Duration.zero;
Expand Down Expand Up @@ -532,7 +529,6 @@ class HotRunner extends ResidentRunner {
mainUri: entrypointFile.absolute.uri,
target: target,
bundle: assetBundle,
firstBuildTime: firstBuildTime,
bundleFirstUpload: isFirstUpload,
bundleDirty: !isFirstUpload && rebuildBundle,
fullRestart: fullRestart,
Expand Down
1 change: 0 additions & 1 deletion packages/flutter_tools/test/general.shard/hot_shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ class FakeFlutterDevice extends Fake implements FlutterDevice {
Uri? mainUri,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool bundleDirty = false,
bool fullRestart = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ class FakeFlutterDevice extends Fake implements FlutterDevice {
required Uri mainUri,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool bundleDirty = false,
bool fullRestart = false,
Expand Down Expand Up @@ -518,7 +517,6 @@ class FakeDevFS extends Fake implements DevFS {
DevFSWriter? devFSWriter,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool fullRestart = false,
String? projectRootPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,6 @@ class FakeWebDevFS extends Fake implements WebDevFS {
DevFSWriter? devFSWriter,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool fullRestart = false,
String? projectRootPath,
Expand Down Expand Up @@ -1731,7 +1730,6 @@ class FakeFlutterDevice extends Fake implements FlutterDevice {
Uri? mainUri,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool bundleDirty = false,
bool fullRestart = false,
Expand Down

0 comments on commit 4e6de2b

Please sign in to comment.