From e2e30ae4c7a39331e03a9c17d472b7a4413d2a6c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 1 Jul 2025 11:11:56 +0200 Subject: [PATCH] pkg/watch: remove unused IsWindowsShortReadError This function was added in b3615d64e2ce7c5496e71fc51e965a6368da2ba2 but appears to be unused. Signed-off-by: Sebastiaan van Stijn --- pkg/watch/notify.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/watch/notify.go b/pkg/watch/notify.go index d09a6be15..d63f5caf2 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 }