clean up stale or unnecessary TODOS (#88308)

This commit is contained in:
Jonah Williams
2021-08-16 21:37:03 -07:00
committed by GitHub
parent d39d542691
commit 060e4608b1
15 changed files with 16 additions and 29 deletions

View File

@@ -55,7 +55,7 @@ Future<void> main(List<String> args) async {
final String packages = '$buildDirectory/dartlang/gen/$path/${name}_dart_library.packages';
final String outputDill = '$buildDirectory/${name}_tmp.dill';
// TODO(jonahwilliams): running from fuchsia root hangs hot reload for some reason.
// Running from fuchsia root hangs hot reload for some reason.
// switch to the project root directory and run from there.
originalWorkingDirectory = globals.fs.currentDirectory.path;
globals.fs.currentDirectory = path;
@@ -92,7 +92,7 @@ Future<void> main(List<String> args) async {
'--target',
targetFile,
'--target-model',
'flutter', // TODO(jonahwilliams): change to flutter_runner when dart SDK rolls
'flutter_runner',
'--output-dill',
outputDill,
'--packages',

View File

@@ -605,7 +605,7 @@ class FlutterBuildSystem extends BuildSystem {
// Always persist the file cache to disk.
fileCache.persist();
}
// TODO(jonahwilliams): this is a bit of a hack, due to various parts of
// This is a bit of a hack, due to various parts of
// the flutter tool writing these files unconditionally. Since Xcode uses
// timestamps to track files, this leads to unnecessary rebuilds if they
// are included. Once all the places that write these files have been

View File

@@ -23,9 +23,6 @@ class GenerateLocalizationsTarget extends Target {
List<Source> get inputs => <Source>[
// This is added as a convenience for developing the tool.
const Source.pattern('{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/localizations.dart'),
// TODO(jonahwilliams): once https://github.com/flutter/flutter/issues/56321 is
// complete, we should add the artifact as a dependency here. Since the tool runs
// this code from source, looking up each dependency will be cumbersome.
];
@override

View File

@@ -371,9 +371,7 @@ abstract class CreateBase extends FlutterCommand {
'pluginClassSnakeCase': pluginClassSnakeCase,
'pluginClassCapitalSnakeCase': pluginClassCapitalSnakeCase,
'pluginDartClass': pluginDartClass,
// TODO(jonahwilliams): update after google3 uuid is updated.
// ignore: prefer_const_constructors
'pluginProjectUUID': Uuid().v4().toUpperCase(),
'pluginProjectUUID': const Uuid().v4().toUpperCase(),
'withPluginHook': withPluginHook,
'androidLanguage': androidLanguage,
'iosLanguage': iosLanguage,

View File

@@ -740,9 +740,6 @@ class FuchsiaDevice extends Device {
/// provided set of `ports`.
///
/// Returns null if no isolate port can be found.
///
// TODO(jonahwilliams): replacing this with the hub will require an update
// to the flutter_runner.
Future<int> findIsolatePort(String isolateName, List<int> ports) async {
for (final int port in ports) {
try {

View File

@@ -58,7 +58,6 @@ class MDnsObservatoryDiscovery {
/// If it is null and there is only one available instance of Observatory,
/// it will return that instance's information regardless of what application
/// the Observatory instance is for.
// TODO(jonahwilliams): use `deviceVmservicePort` to filter mdns results.
@visibleForTesting
Future<MDnsObservatoryDiscoveryResult> query({String applicationId, int deviceVmservicePort}) async {
_logger.printTrace('Checking for advertised Dart observatories...');

View File

@@ -155,8 +155,6 @@ class _FlutterTestRunnerImpl implements FlutterTestRunner {
testWrapper.registerPlatformPlugin(
<Runtime>[Runtime.chrome],
() {
// TODO(jonahwilliams): refactor this into a factory that handles
// providing dependencies.
return FlutterWebPlatform.start(
flutterProject.directory.path,
updateGoldens: updateGoldens,

View File

@@ -54,9 +54,6 @@ class FlutterTesterDevice extends Device {
@required ProcessManager processManager,
@required FlutterVersion flutterVersion,
@required Logger logger,
// TODO(jonahwilliams): remove once g3 rolls.
// ignore: avoid_unused_constructor_parameters
String buildDirectory,
@required FileSystem fileSystem,
@required Artifacts artifacts,
@required OperatingSystemUtils operatingSystemUtils,

View File

@@ -129,7 +129,6 @@ String generateMainModule({
required bool nativeNullAssertions,
String bootstrapModule = 'main_module.bootstrap',
}) {
// TODO(jonahwilliams): fix typo in dwds and update.
return '''
/* ENTRYPOINT_EXTENTION_MARKER */
// Create the main module loaded below.

View File

@@ -57,8 +57,8 @@ abstract class ChromiumDevice extends Device {
/// The active chrome instance.
Chromium _chrome;
// TODO(jonahwilliams): this is technically false, but requires some refactoring
// to allow hot mode restart only devices.
// This device does not actually support hot reload, but the current implementation of the resident runner
// requires both supportsHotReload and supportsHotRestart to be true in order to allow hot restart.
@override
bool get supportsHotReload => true;

View File

@@ -96,7 +96,6 @@ void main() {
fileSystem: fileSystem,
processManager: fakeProcessManager,
artifacts: Artifacts.test(),
buildDirectory: 'build',
logger: BufferLogger.test(),
flutterVersion: FakeFlutterVersion(),
operatingSystemUtils: FakeOperatingSystemUtils(),