@@ -11,9 +11,6 @@ import 'package:build_config/build_config.dart';
11
11
import 'package:build_daemon/constants.dart' ;
12
12
import 'package:build_runner_core/build_runner_core.dart' ;
13
13
import 'package:path/path.dart' as p;
14
- import 'package:watcher/watcher.dart' ;
15
-
16
- import '../generate/directory_watcher_factory.dart' ;
17
14
18
15
const buildFilterOption = 'build-filter' ;
19
16
const configOption = 'config' ;
@@ -31,7 +28,6 @@ const releaseOption = 'release';
31
28
const trackPerformanceOption = 'track-performance' ;
32
29
const skipBuildScriptCheckOption = 'skip-build-script-check' ;
33
30
const symlinkOption = 'symlink' ;
34
- const usePollingWatcherOption = 'use-polling-watcher' ;
35
31
const verboseOption = 'verbose' ;
36
32
37
33
enum BuildUpdatesOption { none, liveReload }
@@ -141,7 +137,6 @@ class DaemonOptions extends WatchOptions {
141
137
required super .builderConfigOverrides,
142
138
required super .isReleaseBuild,
143
139
required super .logPerformanceDir,
144
- required super .usePollingWatcher,
145
140
required super .enableExperiments,
146
141
}) : super ._();
147
142
@@ -187,22 +182,13 @@ class DaemonOptions extends WatchOptions {
187
182
),
188
183
isReleaseBuild: argResults[releaseOption] as bool ,
189
184
logPerformanceDir: argResults[logPerformanceOption] as String ? ,
190
- usePollingWatcher: argResults[usePollingWatcherOption] as bool ,
191
185
enableExperiments: argResults[enableExperimentOption] as List <String >,
192
186
);
193
187
}
194
188
}
195
189
196
190
class WatchOptions extends SharedOptions {
197
- final bool usePollingWatcher;
198
-
199
- DirectoryWatcher Function (String ) get directoryWatcherFactory =>
200
- usePollingWatcher
201
- ? pollingDirectoryWatcherFactory
202
- : defaultDirectoryWatcherFactory;
203
-
204
191
WatchOptions ._({
205
- required this .usePollingWatcher,
206
192
required super .buildFilters,
207
193
required super .enableLowResourcesMode,
208
194
required super .configKey,
@@ -240,7 +226,6 @@ class WatchOptions extends SharedOptions {
240
226
),
241
227
isReleaseBuild: argResults[releaseOption] as bool ,
242
228
logPerformanceDir: argResults[logPerformanceOption] as String ? ,
243
- usePollingWatcher: argResults[usePollingWatcherOption] as bool ,
244
229
enableExperiments: argResults[enableExperimentOption] as List <String >,
245
230
);
246
231
}
@@ -268,7 +253,6 @@ class ServeOptions extends WatchOptions {
268
253
required super .builderConfigOverrides,
269
254
required super .isReleaseBuild,
270
255
required super .logPerformanceDir,
271
- required super .usePollingWatcher,
272
256
required super .enableExperiments,
273
257
}) : super ._();
274
258
@@ -349,7 +333,6 @@ class ServeOptions extends WatchOptions {
349
333
),
350
334
isReleaseBuild: argResults[releaseOption] as bool ,
351
335
logPerformanceDir: argResults[logPerformanceOption] as String ? ,
352
- usePollingWatcher: argResults[usePollingWatcherOption] as bool ,
353
336
enableExperiments: argResults[enableExperimentOption] as List <String >,
354
337
);
355
338
}
0 commit comments