1
0
mirror of https://github.com/golang/go synced 2024-11-20 03:04:40 -07:00

time: remove unused sysSleep

R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5369094
This commit is contained in:
Russ Cox 2011-11-13 22:42:57 -05:00
parent fd34e78b53
commit b126902e84
3 changed files with 0 additions and 29 deletions

View File

@ -9,14 +9,6 @@ import (
"syscall"
)
func sysSleep(t int64) error {
err := syscall.Sleep(t)
if err != nil {
return os.NewSyscallError("sleep", err)
}
return nil
}
// for testing: whatever interrupts a sleep
func interrupt() {
// cannot predict pid, don't want to kill group

View File

@ -11,14 +11,6 @@ import (
"syscall"
)
func sysSleep(t int64) error {
errno := syscall.Sleep(t)
if errno != 0 && errno != syscall.EINTR {
return os.NewSyscallError("sleep", errno)
}
return nil
}
// for testing: whatever interrupts a sleep
func interrupt() {
syscall.Kill(os.Getpid(), syscall.SIGCHLD)

View File

@ -4,19 +4,6 @@
package time
import (
"os"
"syscall"
)
func sysSleep(t int64) error {
errno := syscall.Sleep(t)
if errno != 0 && errno != syscall.EINTR {
return os.NewSyscallError("sleep", errno)
}
return nil
}
// for testing: whatever interrupts a sleep
func interrupt() {
}