Skip to content

Commit e01bb3d

Browse files
committed
Attempt to remove deprecated uvuni_to_utf8()
It has been deprecated since 5.32, emitting a compiler warning if actually called (for most modern compilers). I think it is time to see what breaks when we remove it.
1 parent 5df7a2e commit e01bb3d

File tree

5 files changed

+4
-17
lines changed

5 files changed

+4
-17
lines changed

embed.fnc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3847,8 +3847,6 @@ Admp |U8 * |uv_to_utf8_msgs|NN U8 *d \
38473847
|UV uv \
38483848
|UV flags \
38493849
|NULLOK HV **msgs
3850-
CDbp |U8 * |uvuni_to_utf8 |NN U8 *d \
3851-
|UV uv
38523850
EXdpx |bool |validate_proto |NN SV *name \
38533851
|NULLOK SV *proto \
38543852
|bool warn \

embed.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,6 @@
929929
# define utf8_to_uvchr(a,b) Perl_utf8_to_uvchr(aTHX_ a,b)
930930
# define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b)
931931
# define utf8n_to_uvuni(a,b,c,d) Perl_utf8n_to_uvuni(aTHX_ a,b,c,d)
932-
# define uvuni_to_utf8(a,b) Perl_uvuni_to_utf8(aTHX_ a,b)
933932
# endif
934933
# if defined(PERL_CORE)
935934
# define PerlLIO_dup2_cloexec(a,b) Perl_PerlLIO_dup2_cloexec(aTHX_ a,b)

mathoms.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
180180
return NATIVE_TO_UNI(valid_utf8_to_uvchr(s, retlen));
181181
}
182182

183-
U8 *
184-
Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
185-
{
186-
PERL_ARGS_ASSERT_UVUNI_TO_UTF8;
187-
188-
return uvoffuni_to_utf8_flags(d, uv, 0);
189-
}
190-
191183
/*
192184
=for apidoc_section $unicode
193185
=for apidoc utf8n_to_uvuni

pod/perldelta.pod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ well.
351351

352352
XXX
353353

354+
=item *
355+
356+
Removed the deprecated (since 5.32) function C<uvuni_to_utf8()>
357+
354358
=back
355359

356360
=head1 Selected Bug Fixes

proto.h

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)