]> granicus.if.org Git - python/commitdiff
Remove now unused variables
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 3 Jan 2014 16:39:40 +0000 (17:39 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 3 Jan 2014 16:39:40 +0000 (17:39 +0100)
Objects/unicodeobject.c

index b2279a652d8508151ee84dd1571fd8c063056ba8..a95a35db0313a1d1b23324e27e00109c9bdc855f 100644 (file)
@@ -2876,10 +2876,6 @@ PyUnicode_AsWideCharString(PyObject *unicode,
 PyObject *
 PyUnicode_FromOrdinal(int ordinal)
 {
-    PyObject *v;
-    void *data;
-    int kind;
-
     if (ordinal < 0 || ordinal > MAX_UNICODE) {
         PyErr_SetString(PyExc_ValueError,
                         "chr() arg not in range(0x110000)");
@@ -11330,7 +11326,6 @@ unicode_getitem(PyObject *self, Py_ssize_t index)
     void *data;
     enum PyUnicode_Kind kind;
     Py_UCS4 ch;
-    PyObject *res;
 
     if (!PyUnicode_Check(self) || PyUnicode_READY(self) == -1) {
         PyErr_BadArgument();