diff --git a/eval/builtin_func.go b/eval/builtin_func.go index af9a9862..de530102 100644 --- a/eval/builtin_func.go +++ b/eval/builtin_func.go @@ -8,7 +8,6 @@ import ( "errors" "fmt" "io" - "math" "os" "reflect" "runtime" @@ -81,7 +80,6 @@ func init() { &BuiltinFn{"-", wrapFn(minus)}, &BuiltinFn{"mul", wrapFn(times)}, &BuiltinFn{"div", wrapFn(divide)}, - &BuiltinFn{"pow", wrapFn(pow)}, &BuiltinFn{"lt", wrapFn(lt)}, &BuiltinFn{"gt", wrapFn(gt)}, @@ -494,11 +492,6 @@ func divide(ec *EvalCtx, prod float64, nums ...float64) { out <- String(fmt.Sprintf("%g", prod)) } -func pow(ec *EvalCtx, b, p float64) { - out := ec.ports[1].Chan - out <- String(fmt.Sprintf("%g", math.Pow(b, p))) -} - var ErrFalse = errors.New("false") func lt(ec *EvalCtx, nums ...float64) {