Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b126902e
Commit
b126902e
authored
Nov 13, 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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
src/pkg/time/sys_plan9.go
src/pkg/time/sys_plan9.go
+0
-8
src/pkg/time/sys_unix.go
src/pkg/time/sys_unix.go
+0
-8
src/pkg/time/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