Commit f18ced3f authored by Russ Cox's avatar Russ Cox

cmd/gc: delete dead code

R=ken2
CC=golang-dev
https://golang.org/cl/6307050
parent 744b23fe
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment