diff --git a/packages/flutter_tools/lib/src/emulator.dart b/packages/flutter_tools/lib/src/emulator.dart index d27e62d761..b936f06b13 100644 --- a/packages/flutter_tools/lib/src/emulator.dart +++ b/packages/flutter_tools/lib/src/emulator.dart @@ -24,26 +24,6 @@ class EmulatorManager { final List _emulatorDiscoverers = []; - 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 getEmulatorsById(String emulatorId) async* { final List 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 getEmulators() { - return hasSpecifiedEmulatorId - ? getEmulatorsById(specifiedEmulatorId) - : getAllAvailableEmulators(); - } - Iterable get _platformDiscoverers { return _emulatorDiscoverers.where((EmulatorDiscovery discoverer) => discoverer.supportsPlatform); }