@@ -8,7 +8,6 @@ import 'package:meta/meta.dart';
8
8
import 'package:process/process.dart' ;
9
9
import 'package:unified_analytics/unified_analytics.dart' ;
10
10
11
- import 'android/android_studio_validator.dart' ;
12
11
import 'android/android_workflow.dart' ;
13
12
import 'artifacts.dart' ;
14
13
import 'base/async_guard.dart' ;
@@ -30,15 +29,13 @@ import 'doctor_validator.dart';
30
29
import 'features.dart' ;
31
30
import 'globals.dart' as globals;
32
31
import 'http_host_validator.dart' ;
33
- import 'intellij/intellij_validator.dart' ;
34
32
import 'linux/linux_doctor.dart' ;
35
33
import 'linux/linux_workflow.dart' ;
36
34
import 'macos/macos_workflow.dart' ;
37
35
import 'macos/xcode_validator.dart' ;
38
36
import 'proxy_validator.dart' ;
39
37
import 'tester/flutter_tester.dart' ;
40
38
import 'version.dart' ;
41
- import 'vscode/vscode_validator.dart' ;
42
39
import 'web/chrome.dart' ;
43
40
import 'web/web_validator.dart' ;
44
41
import 'web/workflow.dart' ;
@@ -49,23 +46,17 @@ import 'windows/windows_workflow.dart';
49
46
abstract class DoctorValidatorsProvider {
50
47
// Allow tests to construct a [_DefaultDoctorValidatorsProvider] with explicit
51
48
// [FeatureFlags].
52
- factory DoctorValidatorsProvider .test ({
53
- Platform ? platform,
54
- Logger ? logger,
55
- required FeatureFlags featureFlags,
56
- }) {
49
+ factory DoctorValidatorsProvider .test ({Platform ? platform, required FeatureFlags featureFlags}) {
57
50
return _DefaultDoctorValidatorsProvider (
58
51
featureFlags: featureFlags,
59
52
platform: platform ?? FakePlatform (),
60
- logger: logger ?? BufferLogger .test (),
61
53
);
62
54
}
63
55
64
56
/// The singleton instance, pulled from the [AppContext] .
65
57
static DoctorValidatorsProvider get _instance => context.get <DoctorValidatorsProvider >()! ;
66
58
67
59
static final DoctorValidatorsProvider defaultInstance = _DefaultDoctorValidatorsProvider (
68
- logger: globals.logger,
69
60
platform: globals.platform,
70
61
featureFlags: featureFlags,
71
62
);
@@ -75,17 +66,12 @@ abstract class DoctorValidatorsProvider {
75
66
}
76
67
77
68
class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
78
- _DefaultDoctorValidatorsProvider ({
79
- required this .platform,
80
- required this .featureFlags,
81
- required Logger logger,
82
- }) : _logger = logger;
69
+ _DefaultDoctorValidatorsProvider ({required this .platform, required this .featureFlags});
83
70
84
71
List <DoctorValidator >? _validators;
85
72
List <Workflow >? _workflows;
86
73
final Platform platform;
87
74
final FeatureFlags featureFlags;
88
- final Logger _logger;
89
75
90
76
late final linuxWorkflow = LinuxWorkflow (platform: platform, featureFlags: featureFlags);
91
77
@@ -100,25 +86,6 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
100
86
if (_validators != null ) {
101
87
return _validators! ;
102
88
}
103
-
104
- final ideValidators = < DoctorValidator > [
105
- if (androidWorkflow! .appliesToHostPlatform)
106
- ...AndroidStudioValidator .allValidators (
107
- globals.config,
108
- platform,
109
- globals.fs,
110
- globals.userMessages,
111
- ),
112
- ...IntelliJValidator .installedValidators (
113
- fileSystem: globals.fs,
114
- platform: platform,
115
- userMessages: globals.userMessages,
116
- plistParser: globals.plistParser,
117
- processManager: globals.processManager,
118
- logger: _logger,
119
- ),
120
- ...VsCodeValidator .installedValidators (globals.fs, platform, globals.processManager),
121
- ];
122
89
final proxyValidator = ProxyValidator (platform: platform);
123
90
_validators = < DoctorValidator > [
124
91
FlutterValidator (
@@ -172,7 +139,6 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
172
139
userMessages: globals.userMessages,
173
140
),
174
141
if (windowsWorkflow! .appliesToHostPlatform) visualStudioValidator! ,
175
- if (ideValidators.isNotEmpty) ...ideValidators else NoIdeValidator (),
176
142
if (proxyValidator.shouldShow) proxyValidator,
177
143
if (globals.deviceManager? .canListAnything ?? false )
178
144
DeviceValidator (deviceManager: globals.deviceManager, userMessages: globals.userMessages),
0 commit comments