From: Nathan Youngman Date: Fri, 27 Sep 2013 01:00:24 +0000 (-0600) Subject: remove FD_SET and friends X-Git-Tag: v1.7.2~330^2~1 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=63f9f988eb3c4aa3c1a4d4d647ec204c34436cb2;p=fsnotify.git remove FD_SET and friends should not have been exported https://github.com/howeyc/fsnotify/issues/64#issuecomment-24915706 --- diff --git a/fsnotify_linux.go b/fsnotify_linux.go index ff2f235..7ad3aa4 100644 --- a/fsnotify_linux.go +++ b/fsnotify_linux.go @@ -300,17 +300,3 @@ func (e *FileEvent) ignoreLinux() bool { } return false } - -func FD_SET(p *syscall.FdSet, i int) { - p.Bits[i/64] |= 1 << (uint(i) % 64) -} - -func FD_ISSET(p *syscall.FdSet, i int) bool { - return (p.Bits[i/64] & (1 << (uint(i) % 64))) != 0 -} - -func FD_ZERO(p *syscall.FdSet) { - for i := range p.Bits { - p.Bits[i] = 0 - } -}