Remove unused code

This commit is contained in:
Danny Tuppeny
2018-04-19 08:41:40 +01:00
committed by Danny Tuppeny
parent b7497d558f
commit 3626556d21

View File

@@ -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);
}