summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-29 16:25:38 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-29 16:25:38 +0000
commitcb2f1b7b22aef64f26e7bd5484244a0df0c94631 (patch)
tree03d68d985746fd34cd8beaffce05f47c0d0ecdc7 /sv.c
parent0feed65a3b89b009c18025da638bc5d9cd03851d (diff)
downloadperl-cb2f1b7b22aef64f26e7bd5484244a0df0c94631.tar.gz
sv_2pv_nolen, sv_2pvbyte_nolen and sv_2pvutf8_nolen can all be replaced
with terse macros, and the function bodies retired. p4raw-id: //depot/perl@25883
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/sv.c b/sv.c
index b10ea25a3a..1169249f10 100644
--- a/sv.c
+++ b/sv.c
@@ -2901,20 +2901,6 @@ S_asUV(pTHX_ SV *sv)
return U_V(Atof(SvPVX_const(sv)));
}
-/*
-=for apidoc sv_2pv_nolen
-
-Like C<sv_2pv()>, but doesn't return the length too. You should usually
-use the macro wrapper C<SvPV_nolen(sv)> instead.
-=cut
-*/
-
-char *
-Perl_sv_2pv_nolen(pTHX_ register SV *sv)
-{
- return sv_2pv(sv, 0);
-}
-
/* uiv_2buf(): private routine for use by sv_2pv_flags(): print an IV or
* UV as a string towards the end of buf, and return pointers to start and
* end of it.
@@ -3318,23 +3304,6 @@ Perl_sv_copypv(pTHX_ SV *dsv, register SV *ssv)
}
/*
-=for apidoc sv_2pvbyte_nolen
-
-Return a pointer to the byte-encoded representation of the SV.
-May cause the SV to be downgraded from UTF-8 as a side-effect.
-
-Usually accessed via the C<SvPVbyte_nolen> macro.
-
-=cut
-*/
-
-char *
-Perl_sv_2pvbyte_nolen(pTHX_ register SV *sv)
-{
- return sv_2pvbyte(sv, 0);
-}
-
-/*
=for apidoc sv_2pvbyte
Return a pointer to the byte-encoded representation of the SV, and set *lp
@@ -3354,23 +3323,6 @@ Perl_sv_2pvbyte(pTHX_ register SV *sv, STRLEN *lp)
}
/*
-=for apidoc sv_2pvutf8_nolen
-
-Return a pointer to the UTF-8-encoded representation of the SV.
-May cause the SV to be upgraded to UTF-8 as a side-effect.
-
-Usually accessed via the C<SvPVutf8_nolen> macro.
-
-=cut
-*/
-
-char *
-Perl_sv_2pvutf8_nolen(pTHX_ register SV *sv)
-{
- return sv_2pvutf8(sv, 0);
-}
-
-/*
* =for apidoc sv_2pvutf8
*
* Return a pointer to the UTF-8-encoded representation of the SV, and set *lp