summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-06-05 08:26:59 -0600
committerKarl Williamson <khw@cpan.org>2022-06-02 07:36:00 -0600
commitaa0bbeb97059427b451529157f7824a75272d08c (patch)
tree0a6bb14fef6943d578d29a12f47520d8cd5436a1
parenteafa4197bf865abf3fd4a6f117de2de93484df02 (diff)
downloadperl-aa0bbeb97059427b451529157f7824a75272d08c.tar.gz
regexec.c: Remove obsolete code
The results of this are no longer used
-rw-r--r--regexec.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/regexec.c b/regexec.c
index 9e6e363d0f..60d04979ee 100644
--- a/regexec.c
+++ b/regexec.c
@@ -10699,15 +10699,6 @@ S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8* const
&only_utf8_locale, NULL);
#endif
if (definition) {
- U8 utf8_buffer[2];
- U8 * utf8_p;
- if (utf8_target) {
- utf8_p = (U8 *) p;
- } else { /* Convert to utf8 */
- utf8_p = utf8_buffer;
- append_utf8_from_native_byte(*p, &utf8_p);
- utf8_p = utf8_buffer;
- }
/* Turkish locales have these hard-coded rules overriding
* normal ones */