[svn:parrot] r39341 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Tue Jun 2 20:04:16 UTC 2009
Author: chromatic
Date: Tue Jun 2 20:04:15 2009
New Revision: 39341
URL: https://trac.parrot.org/parrot/changeset/39341
Log:
[PMC] Simplified EventHandler PMC's mark vtable entry (reusing its parent) and
removed an unnecessary destroy vtable entry (reusing its parent).
Modified:
trunk/src/pmc/eventhandler.pmc
Modified: trunk/src/pmc/eventhandler.pmc
==============================================================================
--- trunk/src/pmc/eventhandler.pmc Tue Jun 2 20:03:26 2009 (r39340)
+++ trunk/src/pmc/eventhandler.pmc Tue Jun 2 20:04:15 2009 (r39341)
@@ -139,25 +139,8 @@
if (! PMC_IS_NULL(e->code))
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)e->code);
}
- }
-
-/*
-
-=item C<void destroy()>
-
-Frees any memory held by this PMC.
-
-=cut
-*/
-
- VTABLE void destroy() {
- Parrot_EventHandler_attributes *e = PMC_data_typed(SELF, Parrot_EventHandler_attributes *);
-
- if (e) {
- mem_sys_free(e);
- PMC_data(SELF) = NULL;
- }
+ SUPER();
}
/*
More information about the parrot-commits
mailing list