Commit b7497d55 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Remove unused emulator diagnostics

parent e2b8c86b
......@@ -65,14 +65,6 @@ class EmulatorsCommand extends FlutterCommand {
// 'You may need to create images using "flutter emulators --create"\n'
'You may need to create one using Android Studio '
'or visit https://flutter.io/setup/ for troubleshooting tips.');
final List<String> diagnostics =
await emulatorManager.getEmulatorDiagnostics();
if (diagnostics.isNotEmpty) {
printStatus('');
for (String diagnostic in diagnostics) {
printStatus('• ${diagnostic.replaceAll('\n', '\n ')}');
}
}
} else {
printStatus(
'${emulators.length} available ${pluralize('emulator', emulators.length)}:\n');
......
......@@ -90,15 +90,6 @@ class EmulatorManager {
bool get canListAnything {
return _platformDiscoverers.any((EmulatorDiscovery discoverer) => discoverer.canListAnything);
}
/// Get diagnostics about issues with any emulators.
Future<List<String>> getEmulatorDiagnostics() async {
final List<String> diagnostics = <String>[];
for (EmulatorDiscovery discoverer in _platformDiscoverers) {
diagnostics.addAll(await discoverer.getDiagnostics());
}
return diagnostics;
}
}
/// An abstract class to discover and enumerate a specific type of emulators.
......@@ -110,10 +101,6 @@ abstract class EmulatorDiscovery {
bool get canListAnything;
Future<List<Emulator>> get emulators;
/// Gets a list of diagnostic messages pertaining to issues with any available
/// emulators (will be an empty list if there are no issues).
Future<List<String>> getDiagnostics() => new Future<List<String>>.value(<String>[]);
}
abstract class Emulator {
......
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