Reduce size of data object by removing unused dict field

This commit is contained in:
Doug Currie 2016-01-15 23:44:07 -05:00
parent 7019f81aaf
commit 6881ac6d4d
3 changed files with 0 additions and 4 deletions

View File

@ -4,12 +4,10 @@ struct pic_data *
pic_data_alloc(pic_state *pic, const pic_data_type *type, void *userdata)
{
struct pic_data *data;
struct pic_dict *storage = pic_make_dict(pic);
data = (struct pic_data *)pic_obj_alloc(pic, sizeof(struct pic_data), PIC_TT_DATA);
data->type = type;
data->data = userdata;
data->storage = storage;
return data;
}

View File

@ -375,7 +375,6 @@ gc_mark_object(pic_state *pic, struct pic_object *obj)
if (obj->u.data.type->mark) {
obj->u.data.type->mark(pic, obj->u.data.data, gc_mark);
}
LOOP(obj->u.data.storage);
break;
}
case PIC_TT_DICT: {

View File

@ -18,7 +18,6 @@ typedef struct {
struct pic_data {
PIC_OBJECT_HEADER
const pic_data_type *type;
struct pic_dict *storage;
void *data;
};