Commit b126902e authored by Russ Cox's avatar Russ Cox

time: remove unused sysSleep

R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5369094
parent fd34e78b
......@@ -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
......
......@@ -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)
......
......@@ -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() {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment