diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-20 17:47:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-20 17:47:48 +0000 |
commit | 56d7a0868d14c11c08f61a0acccc9ee745b4e081 (patch) | |
tree | 6be875fe25d5cdf919248790f1cf6dfdb8b9075e /mg.c | |
parent | 1318745670424caf6c309d2a8e64000cb32872aa (diff) | |
download | perl-56d7a0868d14c11c08f61a0acccc9ee745b4e081.tar.gz |
Perl_magic_setglob() is a mathom.
p4raw-id: //depot/perl@32672
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -1928,30 +1928,6 @@ Perl_magic_setpos(pTHX_ SV *sv, MAGIC *mg) } int -Perl_magic_setglob(pTHX_ SV *sv, MAGIC *mg) -{ - GV* gv; - PERL_UNUSED_ARG(mg); - - Perl_croak(aTHX_ "Perl_magic_setglob is dead code?"); - - if (!SvOK(sv)) - return 0; - if (isGV_with_GP(sv)) { - /* We're actually already a typeglob, so don't need the stuff below. - */ - return 0; - } - gv = gv_fetchsv(sv, GV_ADD, SVt_PVGV); - if (sv == (SV*)gv) - return 0; - if (GvGP(sv)) - gp_free((GV*)sv); - GvGP(sv) = gp_ref(GvGP(gv)); - return 0; -} - -int Perl_magic_getsubstr(pTHX_ SV *sv, MAGIC *mg) { STRLEN len; |