From: Robert Griesemer Date: Thu, 21 Feb 2013 01:37:13 +0000 (-0800) Subject: go/types: export data result types are always parenthesized X-Git-Tag: go1.1rc2~932 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8473b4487c26f85fa31088da739507d3b218dc29;p=gostls13.git go/types: export data result types are always parenthesized Minor simplification of gcimporter, removed TODO. R=adonovan CC=golang-dev https://golang.org/cl/7363044 --- diff --git a/src/pkg/go/types/gcimporter.go b/src/pkg/go/types/gcimporter.go index 614ad2e179..d795f41d99 100644 --- a/src/pkg/go/types/gcimporter.go +++ b/src/pkg/go/types/gcimporter.go @@ -548,13 +548,7 @@ func (p *gcParser) parseSignature() *Signature { // optional result type var results []*Var - switch p.tok { - case scanner.Ident, '[', '*', '<', '@': - // TODO(gri) does this ever happen? - // single, unnamed result - results = []*Var{{Type: p.parseType()}} - case '(': - // named or multiple result(s) + if p.tok == '(' { var variadic bool results, variadic = p.parseParameters() if variadic {