Revert "Some plugin helpers"
This reverts commit 75f9d7d9122f5b475c4ff323cca7cc068ea4e411.
This commit is contained in:
parent
d45f8b4d23
commit
74ee256260
1 changed files with 0 additions and 11 deletions
|
@ -66,22 +66,11 @@ func Import(pkg string) *lua.LTable {
|
|||
return importErrors()
|
||||
case "time":
|
||||
return importTime()
|
||||
case "micro/plugin":
|
||||
return importMicroPlugin()
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func importMicroPlugin() *lua.LTable {
|
||||
pkg := L.NewTable()
|
||||
|
||||
L.SetField(pkg, "RegisterCallback", luar.New(L, (*Plugin).RegisterCallback))
|
||||
L.SetField(pkg, "GetPlugin", luar.New(L, GetPlugin))
|
||||
|
||||
return pkg
|
||||
}
|
||||
|
||||
func importFmt() *lua.LTable {
|
||||
pkg := L.NewTable()
|
||||
|
||||
|
|
Loading…
Reference in a new issue