summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-28 15:30:19 -0600
committerKarl Williamson <khw@cpan.org>2022-06-05 09:17:19 -0600
commit7008caa915ad99e650acf2aea40612b5e48b7ba2 (patch)
tree1eb682571428a4b70d777fd266e0adb98048e562 /mg.c
parentc33e00009fe574949363732c1a4f78e238618755 (diff)
downloadperl-7008caa915ad99e650acf2aea40612b5e48b7ba2.tar.gz
Remove deprecated functions
Most of these have been deprecated for a long time; and we've never bothered to follow through in removing them. This commit does that.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/mg.c b/mg.c
index 831e25117f..9895669d9f 100644
--- a/mg.c
+++ b/mg.c
@@ -297,42 +297,6 @@ Perl_mg_set(pTHX_ SV *sv)
return 0;
}
-/*
-=for apidoc mg_length
-
-Reports on the SV's length in bytes, calling length magic if available,
-but does not set the UTF8 flag on C<sv>. It will fall back to 'get'
-magic if there is no 'length' magic, but with no indication as to
-whether it called 'get' magic. It assumes C<sv> is a C<PVMG> or
-higher. Use C<sv_len()> instead.
-
-=cut
-*/
-
-U32
-Perl_mg_length(pTHX_ SV *sv)
-{
- MAGIC* mg;
- STRLEN len;
-
- PERL_ARGS_ASSERT_MG_LENGTH;
-
- for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) {
- const MGVTBL * const vtbl = mg->mg_virtual;
- if (vtbl && vtbl->svt_len) {
- const I32 mgs_ix = SSNEW(sizeof(MGS));
- save_magic(mgs_ix, sv);
- /* omit MGf_GSKIP -- not changed here */
- len = vtbl->svt_len(aTHX_ sv, mg);
- restore_magic(INT2PTR(void*, (IV)mgs_ix));
- return len;
- }
- }
-
- (void)SvPV_const(sv, len);
- return len;
-}
-
I32
Perl_mg_size(pTHX_ SV *sv)
{