mirror of https://github.com/Hilbis/Hilbish
chore: remove unused code
parent
dde56cbb4f
commit
8fdde4aa58
9
job.go
9
job.go
|
@ -11,7 +11,6 @@ import (
|
|||
"hilbish/util"
|
||||
|
||||
rt "github.com/arnodel/golua/runtime"
|
||||
"github.com/arnodel/golua/lib/iolib"
|
||||
)
|
||||
|
||||
var jobs *jobHandler
|
||||
|
@ -97,14 +96,6 @@ func (j *job) getProc() *os.Process {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (j *job) setStdio(typ string, f *iolib.File) {
|
||||
switch typ {
|
||||
case "in": j.stdin = f.File
|
||||
case "out": j.stdout = f.File
|
||||
case "err": j.stderr = f.File
|
||||
}
|
||||
}
|
||||
|
||||
func (j *job) lua() rt.Value {
|
||||
jobFuncs := map[string]util.LuaExport{
|
||||
"stop": {j.luaStop, 0, false},
|
||||
|
|
Loading…
Reference in New Issue