Skip to content

Commit

Permalink
Remove ATTR allocation and initialization, auto_attrs should handle t…
Browse files Browse the repository at this point in the history
…hat for us.
  • Loading branch information
darbelo committed Oct 26, 2009
1 parent b4d7970 commit fdade98
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/pmc/nummatrix2d.pmc
Expand Up @@ -65,15 +65,6 @@ pmclass NumMatrix2D dynpmc auto_attrs {
ATTR INTVAL y;

VTABLE void init() {
Parrot_NumMatrix2D_attributes * const attrs =
mem_allocate_zeroed_typed(Parrot_NumMatrix2D_attributes);

attrs->x = 0;
attrs->y = 0;
attrs->storage = NULL;

PMC_data(SELF) = attrs;

PObj_custom_destroy_SET(SELF);
}

Expand Down

0 comments on commit fdade98

Please sign in to comment.