Commit 3626556d authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Remove unused code

parent b7497d55
......@@ -24,26 +24,6 @@ class EmulatorManager {
final List<EmulatorDiscovery> _emulatorDiscoverers = <EmulatorDiscovery>[];
String _specifiedEmulatorId;
/// A user-specified emulator ID.
String get specifiedEmulatorId {
if (_specifiedEmulatorId == null || _specifiedEmulatorId == 'all')
return null;
return _specifiedEmulatorId;
}
set specifiedEmulatorId(String id) {
_specifiedEmulatorId = id;
}
/// True when the user has specified a single specific emulator.
bool get hasSpecifiedEmulatorId => specifiedEmulatorId != null;
/// True when the user has specified all emulators by setting
/// specifiedEmulatorId = 'all'.
bool get hasSpecifiedAllEmulators => _specifiedEmulatorId == 'all';
Stream<Emulator> getEmulatorsById(String emulatorId) async* {
final List<Emulator> emulators = await getAllAvailableEmulators().toList();
emulatorId = emulatorId.toLowerCase();
......@@ -66,13 +46,6 @@ class EmulatorManager {
yield emulator;
}
/// Return the list of available emulators, filtered by any user-specified emulator id.
Stream<Emulator> getEmulators() {
return hasSpecifiedEmulatorId
? getEmulatorsById(specifiedEmulatorId)
: getAllAvailableEmulators();
}
Iterable<EmulatorDiscovery> get _platformDiscoverers {
return _emulatorDiscoverers.where((EmulatorDiscovery discoverer) => discoverer.supportsPlatform);
}
......
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