pkg/watch: remove unused IsWindowsShortReadError

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2025-07-01 11:11:56 +02:00 committed by Nicolas De loof
parent ab7a6e9322
commit 02c8e63545

View File

@ -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
}