go.tools/go/gccgoimporter: remove dead code

R=adonovan
CC=golang-codereviews
https://golang.org/cl/53340043
This commit is contained in:
Robert Griesemer 2014-01-16 13:19:39 -08:00
parent e4a00b5ce3
commit 184bc0cc8c
1 changed files with 4 additions and 10 deletions

View File

@ -182,20 +182,14 @@ func (p *parser) parseExportedName() (pkg *types.Package, name string) {
// Name = QualifiedName | "?" .
func (p *parser) parseName() string {
switch p.tok {
default:
// The package path is redundant for us. Don't try to parse it.
_, name := p.parseUnquotedQualifiedName()
return name
case '?':
if p.tok == '?' {
// Anonymous.
p.next()
return ""
}
p.errorf("expected name, got %s (%q)", scanner.TokenString(p.tok), p.lit)
return ""
// The package path is redundant for us. Don't try to parse it.
_, name := p.parseUnquotedQualifiedName()
return name
}
func deref(typ types.Type) types.Type {