summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-08-22 22:39:47 -0700
committerOri Bernstein <ori@eigenstate.org>2017-08-22 22:39:47 -0700
commit129d74197a3de99fab0a386ebf152a06b3d4bf17 (patch)
treedd79bc845f671581e6d441c6fd2810a44063f9d6 /parse
parent6d31b85ba1113ff9752849a39684e1b40fffa50a (diff)
downloadmc-129d74197a3de99fab0a386ebf152a06b3d4bf17.tar.gz
Remove dead code/comments.
Diffstat (limited to 'parse')
-rw-r--r--parse/export.c4
-rw-r--r--parse/infer.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/parse/export.c b/parse/export.c
index 1f37e71..0a777e7 100644
--- a/parse/export.c
+++ b/parse/export.c
@@ -74,10 +74,6 @@ tagtype(Stab *st, Type *t, int ingeneric, int hidelocal)
if (t->vis != Visintern)
return;
t->vis = Vishidden;
- /* export the user defined traits */
- //if (t->traits)
- // for (i = Ntraits; bsiter(t->traits, &i); i++)
- // tagtrait(st, traittab[i], ingeneric, hidelocal);
for (i = 0; i < t->nsub; i++)
tagtype(st, t->sub[i], ingeneric, hidelocal);
switch (t->type) {
diff --git a/parse/infer.c b/parse/infer.c
index de5e5d5..5d9ecfc 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -272,8 +272,6 @@ additerspecialization(Node *n, Stab *stab)
tr = traittab[Tciter];
ty = exprtype(n->iterstmt.seq);
- //if (!ty->traits || !bshas(ty->traits, Tciter))
- // return;
if (ty->type == Tyslice || ty->type == Tyarray || ty->type == Typtr)
return;
for (i = 0; i < tr->nproto; i++) {
@@ -880,7 +878,6 @@ verifytraits(Node *ctx, Type *a, Type *b)
static void
mergetraits(Node *ctx, Type *a, Type *b)
{
-// TRFIX
if (b->type == Tyvar) {
/* make sure that if a = b, both have same traits */
if (a->trneed && b->trneed)