chore: remove unused code

extended-job-api
TorchedSammy 2022-05-21 12:47:21 -04:00
parent dde56cbb4f
commit 8fdde4aa58
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 0 additions and 9 deletions

9
job.go
View File

@ -11,7 +11,6 @@ import (
"hilbish/util" "hilbish/util"
rt "github.com/arnodel/golua/runtime" rt "github.com/arnodel/golua/runtime"
"github.com/arnodel/golua/lib/iolib"
) )
var jobs *jobHandler var jobs *jobHandler
@ -97,14 +96,6 @@ func (j *job) getProc() *os.Process {
return nil 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 { func (j *job) lua() rt.Value {
jobFuncs := map[string]util.LuaExport{ jobFuncs := map[string]util.LuaExport{
"stop": {j.luaStop, 0, false}, "stop": {j.luaStop, 0, false},