1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:54:49 -07:00

go/types: remove unused return value (minor cleanup)

Change-Id: I37dd83100b7e977e1d5a06ae84a93a40bbd651c3
Reviewed-on: https://go-review.googlesource.com/10773
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Robert Griesemer 2015-06-05 11:40:02 -07:00
parent e262ee18f0
commit de24c4870a

View File

@ -141,8 +141,8 @@ func (check *Checker) typ(e ast.Expr) Type {
return check.typExpr(e, nil, nil)
}
// funcType type-checks a function or method type and returns its signature.
func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) *Signature {
// funcType type-checks a function or method type.
func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
scope := NewScope(check.scope, "function")
check.recordScope(ftyp, scope)
@ -203,8 +203,6 @@ func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast
sig.params = NewTuple(params...)
sig.results = NewTuple(results...)
sig.variadic = variadic
return sig
}
// typExprInternal drives type checking of types.