Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3626556d
Commit
3626556d
authored
Apr 19, 2018
by
Danny Tuppeny
Committed by
Danny Tuppeny
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
b7497d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
emulator.dart
packages/flutter_tools/lib/src/emulator.dart
+0
-27
No files found.
packages/flutter_tools/lib/src/emulator.dart
View file @
3626556d
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment