Remove a dummy parameter hack

This commit is contained in:
Nigel Tao committed 2018-05-02 20:45:36 +10:00
1 parent dd18633a8a
commit bc9e91b9e9
4 files changed
+1 -53

No files matched your search

-14
View File
@@ -814,20 +814,6 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
// TODO: should return be break?
return nil, nil, nil
}
// TODO: delete this hack that only matches "foo.decode(etc)".
if isThatMethod(q.tm, n, q.tm.ByName("decode"), 3) {
for _, o := range n.Args() {
a := o.Arg().Value()
aMin, aMax, err := q.bcheckExpr(a, depth)
if err != nil {
return nil, nil, err
}
// TODO: check that aMin and aMax is within the function's
// declared arg bounds.
_, _ = aMin, aMax
}
return nil, nil, nil
}
if err := q.bcheckExprCall(n, depth); err != nil {
return nil, nil, err