mirror of
https://github.com/golang/go
synced 2024-11-20 10:24:40 -07:00
cmd/gc: delete dead code
R=ken2 CC=golang-dev https://golang.org/cl/6307050
This commit is contained in:
parent
744b23fe48
commit
f18ced3fc9
@ -432,21 +432,6 @@ oldname(Sym *s)
|
||||
return n;
|
||||
}
|
||||
|
||||
/*
|
||||
* same for types
|
||||
*/
|
||||
Type*
|
||||
newtype(Sym *s)
|
||||
{
|
||||
Type *t;
|
||||
|
||||
t = typ(TFORW);
|
||||
t->sym = s;
|
||||
t->type = T;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* := declarations
|
||||
*/
|
||||
@ -1311,7 +1296,7 @@ addmethod(Sym *sf, Type *t, int local)
|
||||
}
|
||||
// Should have picked off all the reasons above,
|
||||
// but just in case, fall back to generic error.
|
||||
yyerror("invalid receiver type %T", pa);
|
||||
yyerror("invalid receiver type %T (%lT / %lT)", pa, pa, t);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -942,7 +942,6 @@ Node* methodname(Node *n, Type *t);
|
||||
Node* methodname1(Node *n, Node *t);
|
||||
Sym* methodsym(Sym *nsym, Type *t0, int iface);
|
||||
Node* newname(Sym *s);
|
||||
Type* newtype(Sym *s);
|
||||
Node* oldname(Sym *s);
|
||||
void popdcl(void);
|
||||
void poptodcl(void);
|
||||
|
Loading…
Reference in New Issue
Block a user