mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
pkg/watch: remove unused IsWindowsShortReadError
This function was added in b3615d64e2 but
appears to be unused.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Nicolas De loof
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user