Skip to content

Commit 02c8e63

Browse files
thaJeztahndeloof
authored andcommitted
pkg/watch: remove unused IsWindowsShortReadError
This function was added in b3615d6 but appears to be unused. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent ab7a6e9 commit 02c8e63

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

pkg/watch/notify.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@
1717
package watch
1818

1919
import (
20-
"errors"
2120
"expvar"
2221
"fmt"
2322
"os"
2423
"path/filepath"
25-
"runtime"
2624
"strconv"
27-
28-
"github.com/tilt-dev/fsnotify"
2925
)
3026

3127
var numberOfWatches = expvar.NewInt("watch.naive.numberOfWatches")
@@ -103,10 +99,6 @@ func DesiredWindowsBufferSize() int {
10399
return defaultBufferSize
104100
}
105101

106-
func IsWindowsShortReadError(err error) bool {
107-
return runtime.GOOS == "windows" && !errors.Is(err, fsnotify.ErrEventOverflow)
108-
}
109-
110102
type CompositePathMatcher struct {
111103
Matchers []PathMatcher
112104
}

0 commit comments

Comments
 (0)