mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
cmd/compile: remove typecheck.FuncBody
CL 388535 removed the only usage of this function. Change-Id: Ie5a61cce75b03d83162f62989fe52388b069c9bc Reviewed-on: https://go-review.googlesource.com/c/go/+/394576 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
c10fb50894
commit
489e4882ef
|
@ -45,17 +45,6 @@ func Callee(n ir.Node) ir.Node {
|
|||
return typecheck(n, ctxExpr|ctxCallee)
|
||||
}
|
||||
|
||||
func FuncBody(n *ir.Func) {
|
||||
ir.CurFunc = n
|
||||
errorsBefore := base.Errors()
|
||||
Stmts(n.Body)
|
||||
CheckUnused(n)
|
||||
CheckReturn(n)
|
||||
if ir.IsBlank(n.Nname) || base.Errors() > errorsBefore {
|
||||
n.Body = nil // blank function or type errors; do not compile
|
||||
}
|
||||
}
|
||||
|
||||
var importlist []*ir.Func
|
||||
|
||||
// AllImportedBodies reads in the bodies of all imported functions and typechecks
|
||||
|
|
Loading…
Reference in a new issue