Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b126902e
Commit
b126902e
authored
Nov 14, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time: remove unused sysSleep
R=golang-dev, dsymonds, r CC=golang-dev
https://golang.org/cl/5369094
parent
fd34e78b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
sys_plan9.go
src/pkg/time/sys_plan9.go
+0
-8
sys_unix.go
src/pkg/time/sys_unix.go
+0
-8
sys_windows.go
src/pkg/time/sys_windows.go
+0
-13
No files found.
src/pkg/time/sys_plan9.go
View file @
b126902e
...
@@ -9,14 +9,6 @@ import (
...
@@ -9,14 +9,6 @@ import (
"syscall"
"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
// for testing: whatever interrupts a sleep
func
interrupt
()
{
func
interrupt
()
{
// cannot predict pid, don't want to kill group
// cannot predict pid, don't want to kill group
...
...
src/pkg/time/sys_unix.go
View file @
b126902e
...
@@ -11,14 +11,6 @@ import (
...
@@ -11,14 +11,6 @@ import (
"syscall"
"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
// for testing: whatever interrupts a sleep
func
interrupt
()
{
func
interrupt
()
{
syscall
.
Kill
(
os
.
Getpid
(),
syscall
.
SIGCHLD
)
syscall
.
Kill
(
os
.
Getpid
(),
syscall
.
SIGCHLD
)
...
...
src/pkg/time/sys_windows.go
View file @
b126902e
...
@@ -4,19 +4,6 @@
...
@@ -4,19 +4,6 @@
package
time
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
// for testing: whatever interrupts a sleep
func
interrupt
()
{
func
interrupt
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment