[Python-checkins] cpython: Remove an unused variable from PyUnicode_Copy()

victor.stinner python-checkins at python.org
Mon Nov 21 23:11:13 CET 2011


http://hg.python.org/cpython/rev/fb4756fac758
changeset:   73674:fb4756fac758
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Mon Nov 21 23:11:52 2011 +0100
summary:
  Remove an unused variable from PyUnicode_Copy()

files:
  Objects/unicodeobject.c |  2 --
  1 files changed, 0 insertions(+), 2 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1923,7 +1923,6 @@
 {
     Py_ssize_t length;
     PyObject *copy;
-    void *data;
 
     if (!PyUnicode_Check(unicode)) {
         PyErr_BadInternalCall();
@@ -1938,7 +1937,6 @@
         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));

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list