Skip to content

Commit

Permalink
Remove some unused code in _pysqlite_query_execute() (GH-8495)
Browse files Browse the repository at this point in the history
Unused since commit ab994ed.
  • Loading branch information
sir-sigurd authored and berkerpeksag committed Jul 27, 2018
1 parent 3e7d18a commit aee632d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Modules/_sqlite/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,6 @@ static int check_cursor(pysqlite_Cursor* cur)
PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* args)
{
PyObject* operation;
const char* operation_cstr;
Py_ssize_t operation_len;
PyObject* parameters_list = NULL;
PyObject* parameters_iter = NULL;
PyObject* parameters = NULL;
Expand Down Expand Up @@ -464,10 +462,6 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject*
pysqlite_statement_reset(self->statement);
}

operation_cstr = PyUnicode_AsUTF8AndSize(operation, &operation_len);
if (operation_cstr == NULL)
goto error;

/* reset description and rowcount */
Py_INCREF(Py_None);
Py_SETREF(self->description, Py_None);
Expand Down

0 comments on commit aee632d

Please sign in to comment.