Browse Source

pkg/watch: remove unused IsWindowsShortReadError

This function was added in b3615d64e2ce7c5496e71fc51e965a6368da2ba2 but
appears to be unused.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Sebastiaan van Stijn 5 months ago
parent
commit
02c8e63545
1 changed files with 0 additions and 8 deletions
  1. 0 8
      pkg/watch/notify.go

+ 0 - 8
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
 }