summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-20 17:47:48 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-20 17:47:48 +0000
commit56d7a0868d14c11c08f61a0acccc9ee745b4e081 (patch)
tree6be875fe25d5cdf919248790f1cf6dfdb8b9075e /mg.c
parent1318745670424caf6c309d2a8e64000cb32872aa (diff)
downloadperl-56d7a0868d14c11c08f61a0acccc9ee745b4e081.tar.gz
Perl_magic_setglob() is a mathom.
p4raw-id: //depot/perl@32672
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/mg.c b/mg.c
index c4d7aeba5e..4a6c6896aa 100644
--- a/mg.c
+++ b/mg.c
@@ -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;