From de24c4870a4245298b527aa48c399e681933e2bd Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 5 Jun 2015 11:40:02 -0700 Subject: [PATCH] go/types: remove unused return value (minor cleanup) Change-Id: I37dd83100b7e977e1d5a06ae84a93a40bbd651c3 Reviewed-on: https://go-review.googlesource.com/10773 Reviewed-by: Alan Donovan --- go/types/typexpr.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/go/types/typexpr.go b/go/types/typexpr.go index c783bb6c..3fc69a45 100644 --- a/go/types/typexpr.go +++ b/go/types/typexpr.go @@ -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.