mirror of
https://github.com/docker/compose.git
synced 2025-09-26 11:08:46 +02:00
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:
parent
ab7a6e9322
commit
02c8e63545
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user