remove unused firstBuildTime parameter in DevFS::update (#144576)

The title says it all. This parameter is unused and serves no apparent purpose.
This commit is contained in:
Andrew Kolos 2024-03-05 11:14:48 -08:00 committed by GitHub
parent 4e71b4d81d
commit 4e6de2be33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 0 additions and 16 deletions

View file

@ -571,7 +571,6 @@ class DevFS {
DevFSWriter? devFSWriter,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool fullRestart = false,
File? dartPluginRegistrant,

View file

@ -873,7 +873,6 @@ class WebDevFS implements DevFS {
DevFSWriter? devFSWriter,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool fullRestart = false,
String? projectRootPath,

View file

@ -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.
@ -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,
@ -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,

View file

@ -556,7 +556,6 @@ class FlutterDevice {
required Uri mainUri,
String? target,
AssetBundle? bundle,
DateTime? firstBuildTime,
bool bundleFirstUpload = false,
bool bundleDirty = false,
bool fullRestart = false,
@ -574,7 +573,6 @@ class FlutterDevice {
mainUri: mainUri,
target: target,
bundle: bundle,
firstBuildTime: firstBuildTime,
bundleFirstUpload: bundleFirstUpload,
generator: generator!,
fullRestart: fullRestart,

View file

@ -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;
@ -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;
@ -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,

View file

@ -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,

View file

@ -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,
@ -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,

View file

@ -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,
@ -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,