From fa8557823f101854d86a8c35429ad1e8c5ce86bb Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 5 Aug 2015 10:32:01 +0900 Subject: [PATCH] remove unused filed in pic_irep --- extlib/benz/codegen.c | 1 - extlib/benz/include/picrin/irep.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extlib/benz/codegen.c b/extlib/benz/codegen.c index c9a2e088..05173135 100644 --- a/extlib/benz/codegen.c +++ b/extlib/benz/codegen.c @@ -695,7 +695,6 @@ codegen_context_destroy(pic_state *pic, codegen_context *cxt) irep->localc = (int)cxt->locals->len; irep->capturec = (int)cxt->captures->len; irep->code = pic_realloc(pic, cxt->code, sizeof(pic_code) * cxt->clen); - irep->clen = cxt->clen; irep->irep = pic_realloc(pic, cxt->irep, sizeof(struct pic_irep *) * cxt->ilen); irep->ilen = cxt->ilen; irep->pool = pic_realloc(pic, cxt->pool, sizeof(pic_value) * cxt->plen); diff --git a/extlib/benz/include/picrin/irep.h b/extlib/benz/include/picrin/irep.h index 246a84e2..efa5fc6e 100644 --- a/extlib/benz/include/picrin/irep.h +++ b/extlib/benz/include/picrin/irep.h @@ -28,7 +28,7 @@ struct pic_irep { bool varg; struct pic_irep **irep; pic_value *pool; - size_t clen, ilen, plen, slen; + size_t ilen, plen; }; pic_sym *pic_resolve(pic_state *, pic_value, struct pic_env *);