@@ -11,9 +11,6 @@ import 'package:build_config/build_config.dart';
1111import 'package:build_daemon/constants.dart' ;
1212import 'package:build_runner_core/build_runner_core.dart' ;
1313import 'package:path/path.dart' as p;
14- import 'package:watcher/watcher.dart' ;
15-
16- import '../generate/directory_watcher_factory.dart' ;
1714
1815const buildFilterOption = 'build-filter' ;
1916const configOption = 'config' ;
@@ -31,7 +28,6 @@ const releaseOption = 'release';
3128const trackPerformanceOption = 'track-performance' ;
3229const skipBuildScriptCheckOption = 'skip-build-script-check' ;
3330const symlinkOption = 'symlink' ;
34- const usePollingWatcherOption = 'use-polling-watcher' ;
3531const verboseOption = 'verbose' ;
3632
3733enum BuildUpdatesOption { none, liveReload }
@@ -141,7 +137,6 @@ class DaemonOptions extends WatchOptions {
141137 required super .builderConfigOverrides,
142138 required super .isReleaseBuild,
143139 required super .logPerformanceDir,
144- required super .usePollingWatcher,
145140 required super .enableExperiments,
146141 }) : super ._();
147142
@@ -187,22 +182,13 @@ class DaemonOptions extends WatchOptions {
187182 ),
188183 isReleaseBuild: argResults[releaseOption] as bool ,
189184 logPerformanceDir: argResults[logPerformanceOption] as String ? ,
190- usePollingWatcher: argResults[usePollingWatcherOption] as bool ,
191185 enableExperiments: argResults[enableExperimentOption] as List <String >,
192186 );
193187 }
194188}
195189
196190class WatchOptions extends SharedOptions {
197- final bool usePollingWatcher;
198-
199- DirectoryWatcher Function (String ) get directoryWatcherFactory =>
200- usePollingWatcher
201- ? pollingDirectoryWatcherFactory
202- : defaultDirectoryWatcherFactory;
203-
204191 WatchOptions ._({
205- required this .usePollingWatcher,
206192 required super .buildFilters,
207193 required super .enableLowResourcesMode,
208194 required super .configKey,
@@ -240,7 +226,6 @@ class WatchOptions extends SharedOptions {
240226 ),
241227 isReleaseBuild: argResults[releaseOption] as bool ,
242228 logPerformanceDir: argResults[logPerformanceOption] as String ? ,
243- usePollingWatcher: argResults[usePollingWatcherOption] as bool ,
244229 enableExperiments: argResults[enableExperimentOption] as List <String >,
245230 );
246231}
@@ -268,7 +253,6 @@ class ServeOptions extends WatchOptions {
268253 required super .builderConfigOverrides,
269254 required super .isReleaseBuild,
270255 required super .logPerformanceDir,
271- required super .usePollingWatcher,
272256 required super .enableExperiments,
273257 }) : super ._();
274258
@@ -349,7 +333,6 @@ class ServeOptions extends WatchOptions {
349333 ),
350334 isReleaseBuild: argResults[releaseOption] as bool ,
351335 logPerformanceDir: argResults[logPerformanceOption] as String ? ,
352- usePollingWatcher: argResults[usePollingWatcherOption] as bool ,
353336 enableExperiments: argResults[enableExperimentOption] as List <String >,
354337 );
355338 }
0 commit comments