This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Eliminate Internals::inc_sub_generation, which nothing now calls.
authorNicholas Clark <nick@ccl4.org>
Sat, 21 Apr 2007 13:54:28 +0000 (13:54 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 21 Apr 2007 13:54:28 +0000 (13:54 +0000)
p4raw-id: //depot/perl@31012

universal.c

index 354ee61..ea901da 100644 (file)
@@ -284,8 +284,6 @@ Perl_boot_core_UNIVERSAL(pTHX)
     newXSproto("Internals::hash_seed",XS_Internals_hash_seed, file, "");
     newXSproto("Internals::rehash_seed",XS_Internals_rehash_seed, file, "");
     newXSproto("Internals::HvREHASH", XS_Internals_HvREHASH, file, "\\%");
-    newXSproto("Internals::inc_sub_generation",XS_Internals_inc_sub_generation,
-              file, "");
     newXSproto("re::is_regexp", XS_re_is_regexp, file, "$");
     newXSproto("re::regname", XS_re_regname, file, ";$$");
     newXSproto("re::regnames", XS_re_regnames, file, ";$");
@@ -1057,18 +1055,6 @@ XS(XS_Internals_HvREHASH)        /* Subject to change  */
     Perl_croak(aTHX_ "Internals::HvREHASH $hashref");
 }
 
-XS(XS_Internals_inc_sub_generation)
-{
-    dVAR;
-    /* Using dXSARGS would also have dITEM and dSP,
-     * which define 2 unused local variables.  */
-    dAXMARK;
-    PERL_UNUSED_ARG(cv);
-    PERL_UNUSED_VAR(mark);
-    ++PL_sub_generation;
-    XSRETURN_EMPTY;
-}
-
 XS(XS_re_is_regexp)
 {
     dVAR;