pkg: cleanup some unused code
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
d70faf86e8
commit
dfeb86d734
5 changed files with 3 additions and 30 deletions
|
@ -1,6 +0,0 @@
|
|||
// +build !gccgo
|
||||
|
||||
package ioutils
|
||||
|
||||
func callSchedulerIfNecessary() {
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
// +build gccgo
|
||||
|
||||
package ioutils
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func callSchedulerIfNecessary() {
|
||||
//allow or force Go scheduler to switch context, without explicitly
|
||||
//forcing this will make it hang when using gccgo implementation
|
||||
runtime.Gosched()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue