diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-09-01 12:52:06 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-09-01 13:40:58 -0700 |
commit | 25b1159e83fc9adc6d42cbbd24260c1b6d977d6b (patch) | |
tree | c767082b9cc57846c1630ae0db5005376af21a91 /pad.h | |
parent | a5510234c3405289986349f55d73b0d68b070b5c (diff) | |
download | perl-25b1159e83fc9adc6d42cbbd24260c1b6d977d6b.tar.gz |
Defenestrate PAD_DUP
It has been unused in core since d5b1589c and is not used on CPAN.
Diffstat (limited to 'pad.h')
-rw-r--r-- | pad.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -322,27 +322,12 @@ ling pad (lvalue) to C<gen>. Note that C<SvUV_set> is hijacked for this purpose /* -=for apidoc m|void|PAD_DUP|PADLIST dstpad|PADLIST srcpad|CLONE_PARAMS* param -Clone a padlist. - =for apidoc m|void|PAD_CLONE_VARS|PerlInterpreter *proto_perl|CLONE_PARAMS* param Clone the state variables associated with running and compiling pads. =cut */ - -#define PAD_DUP(dstpad, srcpad, param) \ - if ((srcpad) && !AvREAL(srcpad)) { \ - /* XXX padlists are real, but pretend to be not */ \ - AvREAL_on(srcpad); \ - (dstpad) = av_dup_inc((srcpad), param); \ - AvREAL_off(srcpad); \ - AvREAL_off(dstpad); \ - } \ - else \ - (dstpad) = av_dup_inc((srcpad), param); - /* NB - we set PL_comppad to null unless it points at a value that * has already been dup'ed, ie it points to part of an active padlist. * Otherwise PL_comppad ends up being a leaked scalar in code like |