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
b7497d55
Commit
b7497d55
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 emulator diagnostics
parent
e2b8c86b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
emulators.dart
packages/flutter_tools/lib/src/commands/emulators.dart
+0
-8
emulator.dart
packages/flutter_tools/lib/src/emulator.dart
+0
-13
No files found.
packages/flutter_tools/lib/src/commands/emulators.dart
View file @
b7497d55
...
...
@@ -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
'
);
...
...
packages/flutter_tools/lib/src/emulator.dart
View file @
b7497d55
...
...
@@ -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
{
...
...
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