Add what does moose stand for section back to docs
[gitmo/Moose.git] / xs / HasMethods.xs
index 78f15dc..e136abe 100644 (file)
@@ -37,8 +37,8 @@ mop_update_method_map(pTHX_ HV *const stash, HV *const map)
             continue;
         }
 
-        /* $map->{$method_name} = undef */
-        sv_setsv(method, &PL_sv_undef);
+        /* delete $map->{$method_name} */
+        (void)hv_delete(map, method_name, method_name_len, G_DISCARD);
     }
 }