diff options
Diffstat (limited to 'worker/handlers/register.go')
-rw-r--r-- | worker/handlers/register.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/worker/handlers/register.go b/worker/handlers/register.go index 4123665f..c871f07b 100644 --- a/worker/handlers/register.go +++ b/worker/handlers/register.go @@ -2,7 +2,6 @@ package handlers import ( "fmt" - "runtime" "git.sr.ht/~rjarry/aerc/worker/types" ) @@ -26,18 +25,3 @@ func GetHandlerForScheme(scheme string, worker *types.Worker) (types.Backend, er } return backend, nil } - -type WatcherFactoryFunc func() (types.FSWatcher, error) - -var watcherFactory WatcherFactoryFunc - -func RegisterWatcherFactory(fn WatcherFactoryFunc) { - watcherFactory = fn -} - -func NewWatcher() (types.FSWatcher, error) { - if watcherFactory == nil { - return nil, fmt.Errorf("Unsupported OS: %s", runtime.GOOS) - } - return watcherFactory() -} |