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 | "?" .
|
// Name = QualifiedName | "?" .
|
||||||
func (p *parser) parseName() string {
|
func (p *parser) parseName() string {
|
||||||
switch p.tok {
|
if p.tok == '?' {
|
||||||
default:
|
|
||||||
// The package path is redundant for us. Don't try to parse it.
|
|
||||||
_, name := p.parseUnquotedQualifiedName()
|
|
||||||
return name
|
|
||||||
|
|
||||||
case '?':
|
|
||||||
// Anonymous.
|
// Anonymous.
|
||||||
p.next()
|
p.next()
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
// The package path is redundant for us. Don't try to parse it.
|
||||||
p.errorf("expected name, got %s (%q)", scanner.TokenString(p.tok), p.lit)
|
_, name := p.parseUnquotedQualifiedName()
|
||||||
return ""
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
func deref(typ types.Type) types.Type {
|
func deref(typ types.Type) types.Type {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue