diff Python/exceptions.c @ 28049:b38cebc76d82 legacy-trunk

Remove unused variables.
author Walter Dörwald <walter@livinglogic.de>
date Mon, 24 Feb 2003 15:33:31 +0000
parents faabd9867fb8
children aa5cb8e3b9ea df654861ccf6
line wrap: on
line diff
--- a/Python/exceptions.c	Mon Feb 24 15:26:39 2003 +0000
+++ b/Python/exceptions.c	Mon Feb 24 15:33:31 2003 +0000
@@ -1227,7 +1227,6 @@
 {
     PyObject *encodingObj = NULL;
     PyObject *objectObj = NULL;
-    int length;
     int start;
     int end;
     PyObject *reasonObj = NULL;
@@ -1242,8 +1241,6 @@
     if (!(objectObj = PyUnicodeEncodeError_GetObject(self)))
 	goto error;
 
-    length = PyUnicode_GET_SIZE(objectObj);
-
     if (PyUnicodeEncodeError_GetStart(self, &start))
 	goto error;
 
@@ -1307,7 +1304,6 @@
 {
     PyObject *encodingObj = NULL;
     PyObject *objectObj = NULL;
-    int length;
     int start;
     int end;
     PyObject *reasonObj = NULL;
@@ -1322,8 +1318,6 @@
     if (!(objectObj = PyUnicodeDecodeError_GetObject(self)))
 	goto error;
 
-    length = PyString_GET_SIZE(objectObj);
-
     if (PyUnicodeDecodeError_GetStart(self, &start))
 	goto error;
 
@@ -1423,7 +1417,6 @@
 UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
 {
     PyObject *objectObj = NULL;
-    int length;
     int start;
     int end;
     PyObject *reasonObj = NULL;
@@ -1435,8 +1428,6 @@
     if (!(objectObj = PyUnicodeTranslateError_GetObject(self)))
 	goto error;
 
-    length = PyUnicode_GET_SIZE(objectObj);
-
     if (PyUnicodeTranslateError_GetStart(self, &start))
 	goto error;