[svn:parrot] r44296 - trunk/src/pmc
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Mon Feb 22 15:08:12 UTC 2010
Author: whiteknight
Date: Mon Feb 22 15:08:10 2010
New Revision: 44296
URL: https://trac.parrot.org/parrot/changeset/44296
Log:
[pmc] Socket PMC should not override VTABLE_does unnecessarily. Put the role in the pmclass definition
Modified:
trunk/src/pmc/socket.pmc
Modified: trunk/src/pmc/socket.pmc
==============================================================================
--- trunk/src/pmc/socket.pmc Mon Feb 22 14:07:20 2010 (r44295)
+++ trunk/src/pmc/socket.pmc Mon Feb 22 15:08:10 2010 (r44296)
@@ -20,7 +20,7 @@
#include "../src/io/io_private.h"
-pmclass Socket extends Handle auto_attrs {
+pmclass Socket extends Handle provides socket auto_attrs {
ATTR PMC *local; /* Local addr */
ATTR PMC *remote; /* Remote addr */
@@ -67,21 +67,6 @@
/*
-=item C<INTVAL does(STRING * role)>
-
-=cut
-
-*/
-
- VTABLE INTVAL does(STRING * role) {
- Parrot_Socket_attributes * const attrs = PARROT_SOCKET(SELF);
- if (Parrot_str_equal(interp, role, CONST_STRING(interp, "socket")))
- return 1;
- return SUPER(role);
- }
-
-/*
-
=item C<void mark()>
Mark active socket handle data as live.
More information about the parrot-commits
mailing list