Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5fe60d24 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] C api: remove useless variable

parent cd3c2e9b
No related branches found
No related tags found
No related merge requests found
......@@ -270,10 +270,8 @@ static int _forward_code(PyObject *self, PyObject *clause, PyObject **numeric_cl
PyObject *multiply_result;
#ifdef IS_PY3K
PyObject *last_char = PyUnicode_FromString("`");
PyObject *py_shift_step = PyLong_FromLong(*shift_step);
#else
PyObject *last_char = PyString_FromString("`");
PyObject *py_shift_step = PyInt_FromLong(*shift_step);
#endif
Py_ssize_t i = 0;
Py_ssize_t name_size = 0;
......@@ -300,7 +298,6 @@ static int _forward_code(PyObject *self, PyObject *clause, PyObject **numeric_cl
Py_DECREF(literals);
Py_DECREF(literals_iterator);
Py_DECREF(last_char);
Py_DECREF(py_shift_step);
PyErr_SetString(PyExc_KeyError, "lit_name not found in dict");
return 0;
}
......@@ -361,7 +358,6 @@ static int _forward_code(PyObject *self, PyObject *clause, PyObject **numeric_cl
Py_DECREF(literals);
Py_DECREF(literals_iterator);
Py_DECREF(last_char);
Py_DECREF(py_shift_step);
if (PyErr_Occurred()) {
/* propagate error */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment