Skip to content

Commit

Permalink
eliminate unused 'pf' attribute from ImageIOSize
Browse files Browse the repository at this point in the history
  • Loading branch information
plobsing committed Apr 10, 2011
1 parent 0573725 commit 5d9afa0
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/pmc/imageiosize.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ check_seen(PARROT_INTERP, ARGIN(PMC *self), ARGIN(PMC *v))
pmclass ImageIOSize auto_attrs {
ATTR PMC *seen; /* seen hash */
ATTR PMC *todo; /* todo list */
ATTR struct PackFile *pf;
ATTR struct PackFile_ConstTable *pf_ct;
ATTR INTVAL size;

Expand All @@ -90,7 +89,6 @@ Initializes the PMC.
*/
VTABLE void init() {
PARROT_IMAGEIOSIZE(SELF)->todo = Parrot_pmc_new(INTERP, enum_class_ResizablePMCArray);
PARROT_IMAGEIOSIZE(SELF)->pf = PackFile_new(INTERP, 0);
PARROT_IMAGEIOSIZE(SELF)->pf_ct = NULL;
PARROT_IMAGEIOSIZE(SELF)->size = 0;

Expand All @@ -100,7 +98,7 @@ Initializes the PMC.

PObj_flag_CLEAR(private1, SELF);

PObj_custom_mark_destroy_SETALL(SELF);
PObj_custom_mark_SET(SELF);
}

/*
Expand All @@ -114,7 +112,6 @@ Initializes the PMC with a pre-existing C<PackFile_ConstTable>.
*/
VTABLE void init_pmc(PMC *pf_ct) {
PARROT_IMAGEIOSIZE(SELF)->todo = Parrot_pmc_new(INTERP, enum_class_ResizablePMCArray);
PARROT_IMAGEIOSIZE(SELF)->pf = PackFile_new(INTERP, 0);
PARROT_IMAGEIOSIZE(SELF)->pf_ct =
(PackFile_ConstTable *)VTABLE_get_pointer(INTERP, pf_ct);
PARROT_IMAGEIOSIZE(SELF)->size = 0;
Expand All @@ -125,25 +122,12 @@ Initializes the PMC with a pre-existing C<PackFile_ConstTable>.

PObj_flag_SET(private1, SELF);

PObj_custom_mark_destroy_SETALL(SELF);
PObj_custom_mark_SET(SELF);
}


/*

=item C<void destroy()>

Destroys the PMC.

=cut

*/
VTABLE void destroy() {
PackFile_destroy(INTERP, PARROT_IMAGEIOSIZE(SELF)->pf);
}

/*

=item C<void mark()>

Marks the PMC as alive.
Expand Down

0 comments on commit 5d9afa0

Please sign in to comment.