From 348306ceb4157b04882b732d6df1a28391782fc2 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Tue, 23 Feb 2016 01:09:48 +0100 Subject: [PATCH] Revert accidentally commited code when Fixing typo in README. This reverts commit 98f02a01b5d775cdf6d63836a5a9a260017f6f33. --- eval/builtin_func.go | 7 ------- 1 file changed, 7 deletions(-) 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) {