mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Remove an unused variable from PyUnicode_Copy()
This commit is contained in:
parent
87af4f2f3a
commit
2d718f39a5
1 changed files with 0 additions and 2 deletions
|
@ -1923,7 +1923,6 @@ PyUnicode_Copy(PyObject *unicode)
|
|||
{
|
||||
Py_ssize_t length;
|
||||
PyObject *copy;
|
||||
void *data;
|
||||
|
||||
if (!PyUnicode_Check(unicode)) {
|
||||
PyErr_BadInternalCall();
|
||||
|
@ -1938,7 +1937,6 @@ PyUnicode_Copy(PyObject *unicode)
|
|||
return NULL;
|
||||
assert(PyUnicode_KIND(copy) == PyUnicode_KIND(unicode));
|
||||
|
||||
data = PyUnicode_DATA(unicode);
|
||||
Py_MEMCPY(PyUnicode_DATA(copy), PyUnicode_DATA(unicode),
|
||||
length * PyUnicode_KIND(unicode));
|
||||
assert(_PyUnicode_CheckConsistency(copy, 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue