aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-06-05 11:44:31 -0700
committerRobert Griesemer <gri@golang.org>2015-06-05 18:51:23 +0000
commitd64cdde3577e9478da6d25047eccac63f95c49d6 (patch)
tree9401bd3061e9b1dd056862a8451ad51aa292b94e /src
parent232331f0c7c60dc2cfde46b356e5610331179ad3 (diff)
downloadgo-d64cdde3577e9478da6d25047eccac63f95c49d6.tar.xz
go/types: remove unused return value
Port of https://go-review.googlesource.com/10773 from x/tools. Change-Id: I6aba6a63a5448b8fcbcc7f072c627c27965dbe20 Reviewed-on: https://go-review.googlesource.com/10774 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/go/types/typexpr.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/go/types/typexpr.go b/src/go/types/typexpr.go
index 3fc1574e80..a2e082e842 100644
--- a/src/go/types/typexpr.go
+++ b/src/go/types/typexpr.go
@@ -140,8 +140,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)
@@ -202,8 +202,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.