[3.14] Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637) (#140658)

Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637)
(cherry picked from commit 7d70a147f5)

Co-authored-by: Shamil <ashm.tech@proton.me>
This commit is contained in:
Miss Islington (bot) 2025-10-27 10:21:43 +01:00 committed by GitHub
parent 842c49b354
commit 97c59f9d61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5497,7 +5497,6 @@ unicode_decode_utf8(const char *s, Py_ssize_t size,
if (maxchr <= 255) {
memcpy(PyUnicode_1BYTE_DATA(u), s, pos);
s += pos;
size -= pos;
writer.pos = pos;
}
@ -5545,7 +5544,6 @@ unicode_decode_utf8_writer(_PyUnicodeWriter *writer,
return 0;
}
s += decoded;
size -= decoded;
}
return unicode_decode_utf8_impl(writer, starts, s, end,