Skip to content

Commit

Permalink
Remove obsolete (and unmarked) reference to cached_type. bacek++
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jul 9, 2009
1 parent e7a7999 commit 544038f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pmc/objectref_pmc.template
Expand Up @@ -20,7 +20,6 @@ Forwards all but some methods to the held PMC.

pmclass ObjectRef need_ext dynpmc group perl6_group {
ATTR PMC *value;
ATTR PMC *cached_type;

VTABLE void init() {
PMC * const hll_ns = Parrot_get_ctx_HLL_namespace(INTERP);
Expand All @@ -30,15 +29,12 @@ pmclass ObjectRef need_ext dynpmc group perl6_group {
}

VTABLE void init_pmc(PMC *value) {
PMC *type_obj = PMCNULL;

/* Need custom mark and destroy. */
PObj_custom_mark_SET(SELF);
PObj_active_destroy_SET(SELF);

/* Create underlying structure. */
PMC_data(SELF) = mem_allocate_zeroed_typed(Parrot_ObjectRef_attributes);
SET_ATTR_cached_type(INTERP, SELF, type_obj);

/* Initialize with an undef PMC if no value. */
if (PMC_IS_NULL(value))
Expand Down

0 comments on commit 544038f

Please sign in to comment.