Skip to content

Commit 463db48

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 9a22386 commit 463db48

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
@@ -3846,8 +3846,6 @@ Admp |U8 * |uv_to_utf8_msgs|NN U8 *d \
38463846
|UV uv \
38473847
|UV flags \
38483848
|NULLOK HV **msgs
3849-
CDbp |U8 * |uvuni_to_utf8 |NN U8 *d \
3850-
|UV uv
38513849
EXdpx |bool |validate_proto |NN SV *name \
38523850
|NULLOK SV *proto \
38533851
|bool warn \

embed.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,6 @@
928928
# define utf8_to_uvchr(a,b) Perl_utf8_to_uvchr(aTHX_ a,b)
929929
# define utf8_to_uvuni(a,b) Perl_utf8_to_uvuni(aTHX_ a,b)
930930
# define utf8n_to_uvuni(a,b,c,d) Perl_utf8n_to_uvuni(aTHX_ a,b,c,d)
931-
# define uvuni_to_utf8(a,b) Perl_uvuni_to_utf8(aTHX_ a,b)
932931
# endif
933932
# if defined(PERL_CORE)
934933
# 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
@@ -142,14 +142,6 @@ Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
142142
return NATIVE_TO_UNI(valid_utf8_to_uvchr(s, retlen));
143143
}
144144

145-
U8 *
146-
Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
147-
{
148-
PERL_ARGS_ASSERT_UVUNI_TO_UTF8;
149-
150-
return uvoffuni_to_utf8_flags(d, uv, 0);
151-
}
152-
153145
/*
154146
=for apidoc_section $unicode
155147
=for apidoc utf8n_to_uvuni

pod/perldelta.pod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ well.
378378
Removed the deprecated (since 5.32) functions C<sv_locking()> and
379379
C<sv_unlocking>.
380380

381+
=item *
382+
383+
Removed the deprecated (since 5.32) function C<uvuni_to_utf8()>
384+
381385
=back
382386

383387
=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)