]> go.fuhry.dev Git - fsnotify.git/commitdiff
remove FD_SET and friends
authorNathan Youngman <git@nathany.com>
Fri, 27 Sep 2013 01:00:24 +0000 (19:00 -0600)
committerNathan Youngman <git@nathany.com>
Thu, 14 Nov 2013 04:05:37 +0000 (21:05 -0700)
should not have been exported

https://github.com/howeyc/fsnotify/issues/64#issuecomment-24915706

fsnotify_linux.go

index ff2f235d0d09fd39dac5ed6534a298bdda672ab3..7ad3aa47684f8b02121845250362b52e07529386 100644 (file)
@@ -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
-       }
-}