diff --git a/pkg/watch/notify.go b/pkg/watch/notify.go index d09a6be1525..d63f5caf28b 100644 --- a/pkg/watch/notify.go +++ b/pkg/watch/notify.go @@ -17,15 +17,11 @@ package watch import ( - "errors" "expvar" "fmt" "os" "path/filepath" - "runtime" "strconv" - - "github.com/tilt-dev/fsnotify" ) var numberOfWatches = expvar.NewInt("watch.naive.numberOfWatches") @@ -103,10 +99,6 @@ func DesiredWindowsBufferSize() int { return defaultBufferSize } -func IsWindowsShortReadError(err error) bool { - return runtime.GOOS == "windows" && !errors.Is(err, fsnotify.ErrEventOverflow) -} - type CompositePathMatcher struct { Matchers []PathMatcher }