ref: f76f863288e8d289c9377dadb31a40bf83baa279
parent: ab23c06108223b4b9d0fbf3e2ecafb0948de0fa5
author: Michael Forney <mforney@mforney.org>
date: Wed Jun 28 20:40:39 EDT 2017
Remove unused traitlist from Type struct
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -113,8 +113,6 @@
Vis vis;
Bitset *traits; /* the type constraints matched on this type */
- Node **traitlist; /* The names of the constraints on the type. Used to fill the bitset */
- size_t ntraitlist; /* The length of the constraint list above */
Type **gparam; /* Tygeneric: type parameters that match the type args */
size_t ngparam; /* Tygeneric: count of type parameters */
--- a/parse/type.c
+++ b/parse/type.c
@@ -100,8 +100,6 @@
r->fixed = 0; /* re-resolving doesn't hurt */
r->traits = bsdup(t->traits);
- r->traitlist = memdup(t->traitlist, t->ntraitlist * sizeof(Node *));
- r->ntraitlist = t->ntraitlist;
r->arg = memdup(t->arg, t->narg * sizeof(Type *));
r->narg = t->narg;