mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Remove unused variables.
This commit is contained in:
parent
0c44c0477b
commit
b671c0c418
1 changed files with 0 additions and 9 deletions
|
@ -1227,7 +1227,6 @@ UnicodeEncodeError__str__(PyObject *self, PyObject *arg)
|
||||||
{
|
{
|
||||||
PyObject *encodingObj = NULL;
|
PyObject *encodingObj = NULL;
|
||||||
PyObject *objectObj = NULL;
|
PyObject *objectObj = NULL;
|
||||||
int length;
|
|
||||||
int start;
|
int start;
|
||||||
int end;
|
int end;
|
||||||
PyObject *reasonObj = NULL;
|
PyObject *reasonObj = NULL;
|
||||||
|
@ -1242,8 +1241,6 @@ UnicodeEncodeError__str__(PyObject *self, PyObject *arg)
|
||||||
if (!(objectObj = PyUnicodeEncodeError_GetObject(self)))
|
if (!(objectObj = PyUnicodeEncodeError_GetObject(self)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
length = PyUnicode_GET_SIZE(objectObj);
|
|
||||||
|
|
||||||
if (PyUnicodeEncodeError_GetStart(self, &start))
|
if (PyUnicodeEncodeError_GetStart(self, &start))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
@ -1307,7 +1304,6 @@ UnicodeDecodeError__str__(PyObject *self, PyObject *arg)
|
||||||
{
|
{
|
||||||
PyObject *encodingObj = NULL;
|
PyObject *encodingObj = NULL;
|
||||||
PyObject *objectObj = NULL;
|
PyObject *objectObj = NULL;
|
||||||
int length;
|
|
||||||
int start;
|
int start;
|
||||||
int end;
|
int end;
|
||||||
PyObject *reasonObj = NULL;
|
PyObject *reasonObj = NULL;
|
||||||
|
@ -1322,8 +1318,6 @@ UnicodeDecodeError__str__(PyObject *self, PyObject *arg)
|
||||||
if (!(objectObj = PyUnicodeDecodeError_GetObject(self)))
|
if (!(objectObj = PyUnicodeDecodeError_GetObject(self)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
length = PyString_GET_SIZE(objectObj);
|
|
||||||
|
|
||||||
if (PyUnicodeDecodeError_GetStart(self, &start))
|
if (PyUnicodeDecodeError_GetStart(self, &start))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
@ -1423,7 +1417,6 @@ static PyObject *
|
||||||
UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
|
UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
|
||||||
{
|
{
|
||||||
PyObject *objectObj = NULL;
|
PyObject *objectObj = NULL;
|
||||||
int length;
|
|
||||||
int start;
|
int start;
|
||||||
int end;
|
int end;
|
||||||
PyObject *reasonObj = NULL;
|
PyObject *reasonObj = NULL;
|
||||||
|
@ -1435,8 +1428,6 @@ UnicodeTranslateError__str__(PyObject *self, PyObject *arg)
|
||||||
if (!(objectObj = PyUnicodeTranslateError_GetObject(self)))
|
if (!(objectObj = PyUnicodeTranslateError_GetObject(self)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
length = PyUnicode_GET_SIZE(objectObj);
|
|
||||||
|
|
||||||
if (PyUnicodeTranslateError_GetStart(self, &start))
|
if (PyUnicodeTranslateError_GetStart(self, &start))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue