[svn:parrot] r48716 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sun Aug 29 02:05:05 UTC 2010


Author: chromatic
Date: Sun Aug 29 02:05:05 2010
New Revision: 48716
URL: https://trac.parrot.org/parrot/changeset/48716

Log:
[MMD] Removed check for unused Closure PMC type.

Modified:
   trunk/src/multidispatch.c

Modified: trunk/src/multidispatch.c
==============================================================================
--- trunk/src/multidispatch.c	Sun Aug 29 01:45:19 2010	(r48715)
+++ trunk/src/multidispatch.c	Sun Aug 29 02:05:05 2010	(r48716)
@@ -963,7 +963,6 @@
     ASSERT_ARGS(Parrot_mmd_add_multi_from_long_sig)
     Parrot_Sub_attributes *sub;
     STRING     *sub_str     = CONST_STRING(interp, "Sub");
-    STRING     *closure_str = CONST_STRING(interp, "Closure");
     PMC        *type_list   = Parrot_str_split(interp, CONST_STRING(interp, ","), long_sig);
     STRING     *ns_name     = VTABLE_get_string_keyed_int(interp, type_list, 0);
 
@@ -973,8 +972,7 @@
     if (sub_obj->vtable->base_type == enum_class_NCI) {
         SETATTR_NCI_multi_sig(interp, sub_obj, multi_sig);
     }
-    else if (VTABLE_isa(interp, sub_obj, sub_str)
-         ||  VTABLE_isa(interp, sub_obj, closure_str)) {
+    else if (VTABLE_isa(interp, sub_obj, sub_str)) {
         PMC_get_sub(interp, sub_obj, sub);
         sub->multi_signature = multi_sig;
     }


More information about the parrot-commits mailing list