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:
parent
e262ee18f0
commit
de24c4870a
|
@ -141,8 +141,8 @@ func (check *Checker) typ(e ast.Expr) Type {
|
||||||
return check.typExpr(e, nil, nil)
|
return check.typExpr(e, nil, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
// funcType type-checks a function or method type and returns its signature.
|
// funcType type-checks a function or method type.
|
||||||
func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) *Signature {
|
func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
|
||||||
scope := NewScope(check.scope, "function")
|
scope := NewScope(check.scope, "function")
|
||||||
check.recordScope(ftyp, scope)
|
check.recordScope(ftyp, scope)
|
||||||
|
|
||||||
|
@ -203,8 +203,6 @@ func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast
|
||||||
sig.params = NewTuple(params...)
|
sig.params = NewTuple(params...)
|
||||||
sig.results = NewTuple(results...)
|
sig.results = NewTuple(results...)
|
||||||
sig.variadic = variadic
|
sig.variadic = variadic
|
||||||
|
|
||||||
return sig
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// typExprInternal drives type checking of types.
|
// typExprInternal drives type checking of types.
|
||||||
|
|
Loading…
Reference in New Issue