Revert accidentally commited code when Fixing typo in README.

This reverts commit 98f02a01b5.
This commit is contained in:
Qi Xiao 2016-02-23 01:09:48 +01:00
parent 98f02a01b5
commit 348306ceb4

View File

@ -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) {