Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b671c0c

Browse files
committed
Remove unused variables.
1 parent 0c44c04 commit b671c0c

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Python/exceptions.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,6 @@ UnicodeEncodeError__str__(PyObject *self, PyObject *arg)
12271227
{
12281228
PyObject *encodingObj = NULL;
12291229
PyObject *objectObj = NULL;
1230-
int length;
12311230
int start;
12321231
int end;
12331232
PyObject *reasonObj = NULL;
@@ -1242,8 +1241,6 @@ UnicodeEncodeError__str__(PyObject *self, PyObject *arg)
12421241
if (!(objectObj = PyUnicodeEncodeError_GetObject(self)))
12431242
goto error;
12441243

1245-
length = PyUnicode_GET_SIZE(objectObj);
1246-
12471244
if (PyUnicodeEncodeError_GetStart(self, &start))
12481245
goto error;
12491246

@@ -1307,7 +1304,6 @@ UnicodeDecodeError__str__(PyObject *self, PyObject *arg)
13071304
{
13081305
PyObject *encodingObj = NULL;
13091306
PyObject *objectObj = NULL;
1310-
int length;
13111307
int start;
13121308
int end;
13131309
PyObject *reasonObj = NULL;
@@ -1322,8 +1318,6 @@ UnicodeDecodeError__str__(PyObject *self, PyObject *arg)
13221318
if (!(objectObj = PyUnicodeDecodeError_GetObject(self)))
13231319
goto error;
13241320

1325-
length = PyString_GET_SIZE(objectObj);
1326-
13271321
if (PyUnicodeDecodeError_GetStart(self, &start))
13281322
goto error;
13291323

@@ -1423,7 +1417,6 @@ static PyObject *
14231417
UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
14241418
{
14251419
PyObject *objectObj = NULL;
1426-
int length;
14271420
int start;
14281421
int end;
14291422
PyObject *reasonObj = NULL;
@@ -1435,8 +1428,6 @@ UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
14351428
if (!(objectObj = PyUnicodeTranslateError_GetObject(self)))
14361429
goto error;
14371430

1438-
length = PyUnicode_GET_SIZE(objectObj);
1439-
14401431
if (PyUnicodeTranslateError_GetStart(self, &start))
14411432
goto error;
14421433

0 commit comments

Comments
 (0)