go.tools/go/gccgoimporter: remove dead code
R=adonovan CC=golang-codereviews https://golang.org/cl/53340043
This commit is contained in:
parent
e4a00b5ce3
commit
184bc0cc8c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue