diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-21 22:11:52 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-21 22:11:52 (GMT) |
commit | 2d718f39a528009d84341a91555ffe66f9acc480 (patch) | |
tree | 2c1424aeace13acbf6acc3df73774098dd38aa34 /Objects | |
parent | 87af4f2f3a615a13b4e9dde0f732ccd442402b29 (diff) | |
download | cpython-2d718f39a528009d84341a91555ffe66f9acc480.zip cpython-2d718f39a528009d84341a91555ffe66f9acc480.tar.gz cpython-2d718f39a528009d84341a91555ffe66f9acc480.tar.bz2 |
Remove an unused variable from PyUnicode_Copy()
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1a44f4a..1c276d1 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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)); |