improved position of some common functions

This commit is contained in:
2024-06-09 07:38:29 +02:00
parent 53bcf90d2a
commit 8eb2d77ea3
4 changed files with 33 additions and 38 deletions
-8
View File
@@ -31,11 +31,3 @@ func initDefaultVars(ctx ExprContext) {
ctx.SetVar(ControlBoolShortcut, true)
ctx.SetVar(ControlSearchPath, init_search_path)
}
func getControlString(ctx ExprContext, name string) (s string, exists bool) {
var v any
if v, exists = ctx.GetVar(name); exists {
s, exists = v.(string)
}
return
}