summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-27 21:24:32 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-27 21:24:32 -0400
commit0848ff3bb41572d2e850360f220369ccd62c715b (patch)
treef94fc3f9a549fce6ce226729d47baf0e5285dd01 /copy.c
parent7cf5a8735ecbd37faf5e9f740d5f1a49939eea07 (diff)
removed StructDef.constants
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/copy.c b/copy.c
index 88fb1ee..7c923ee 100644
--- a/copy.c
+++ b/copy.c
@@ -107,13 +107,6 @@ static void copy_struct(Copier *c, StructDef *out, StructDef *in) {
*fout = *fin;
fout->type = copy_type_(c, fin->type);
}
- out->constants = NULL;
- size_t nconstants = arr_len(in->constants);
- arr_set_lena(&out->constants, nconstants, c->allocr);
- for (size_t i = 0; i < nconstants; ++i) {
- copy_decl(c, out->constants[i] = allocr_malloc(c->allocr, sizeof *out->constants[i]),
- in->constants[i]);
- }
}
size_t nparams = arr_len(in->params);
out->params = NULL;