]> granicus.if.org Git - python/commitdiff
Remove unused variables.
authorWalter Dörwald <walter@livinglogic.de>
Mon, 24 Feb 2003 15:33:31 +0000 (15:33 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 24 Feb 2003 15:33:31 +0000 (15:33 +0000)
Python/exceptions.c

index 0080694cd8f4ceb93b406a41a66fba769e56d557..f8e330ff53a0c844fd84633c0366a8015295fa21 100644 (file)
@@ -1227,7 +1227,6 @@ UnicodeEncodeError__str__(PyObject *self, PyObject *arg)
 {
     PyObject *encodingObj = NULL;
     PyObject *objectObj = NULL;
-    int length;
     int start;
     int end;
     PyObject *reasonObj = NULL;
@@ -1242,8 +1241,6 @@ UnicodeEncodeError__str__(PyObject *self, PyObject *arg)
     if (!(objectObj = PyUnicodeEncodeError_GetObject(self)))
        goto error;
 
-    length = PyUnicode_GET_SIZE(objectObj);
-
     if (PyUnicodeEncodeError_GetStart(self, &start))
        goto error;
 
@@ -1307,7 +1304,6 @@ UnicodeDecodeError__str__(PyObject *self, PyObject *arg)
 {
     PyObject *encodingObj = NULL;
     PyObject *objectObj = NULL;
-    int length;
     int start;
     int end;
     PyObject *reasonObj = NULL;
@@ -1322,8 +1318,6 @@ UnicodeDecodeError__str__(PyObject *self, PyObject *arg)
     if (!(objectObj = PyUnicodeDecodeError_GetObject(self)))
        goto error;
 
-    length = PyString_GET_SIZE(objectObj);
-
     if (PyUnicodeDecodeError_GetStart(self, &start))
        goto error;
 
@@ -1423,7 +1417,6 @@ static PyObject *
 UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
 {
     PyObject *objectObj = NULL;
-    int length;
     int start;
     int end;
     PyObject *reasonObj = NULL;
@@ -1435,8 +1428,6 @@ UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
     if (!(objectObj = PyUnicodeTranslateError_GetObject(self)))
        goto error;
 
-    length = PyUnicode_GET_SIZE(objectObj);
-
     if (PyUnicodeTranslateError_GetStart(self, &start))
        goto error;