From e187ff0194468a52c0dbc96a648c2b5e2220a75f Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sat, 7 Sep 2024 09:36:09 +1000 Subject: [PATCH] issue-1: removed commented out code --- ucl/builtins.go | 14 -------------- ucl/inst.go | 4 ---- 2 files changed, 18 deletions(-) diff --git a/ucl/builtins.go b/ucl/builtins.go index f36842e..3b3a879 100644 --- a/ucl/builtins.go +++ b/ucl/builtins.go @@ -432,20 +432,6 @@ func concatBuiltin(ctx context.Context, args invocationArgs) (object, error) { return strObject(sb.String()), nil } -// -//func catBuiltin(ctx context.Context, args invocationArgs) (object, error) { -// if err := args.expectArgn(1); err != nil { -// return nil, err -// } -// -// filename, err := args.stringArg(0) -// if err != nil { -// return nil, err -// } -// -// return &fileLinesStream{filename: filename}, nil -//} - func callBuiltin(ctx context.Context, args invocationArgs) (object, error) { if err := args.expectArgn(1); err != nil { return nil, err diff --git a/ucl/inst.go b/ucl/inst.go index c19f9cd..a5f35ed 100644 --- a/ucl/inst.go +++ b/ucl/inst.go @@ -89,10 +89,6 @@ func New(opts ...InstOption) *Inst { rootEC.addMacro("foreach", macroFunc(foreachBuiltin)) rootEC.addMacro("proc", macroFunc(procBuiltin)) - //rootEC.addCmd("testTimebomb", invokableStreamFunc(errorTestBuiltin)) - - rootEC.setOrDefineVar("hello", strObject("world")) - inst := &Inst{ out: os.Stdout, rootEC: rootEC,