summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-07-27 10:06:03 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2018-07-27 10:06:03 (GMT)
commitaee632dfbb0abbc0d2bcc988c43a736afd568c55 (patch)
treeb16148e66f5d9c7b5b5527a253caa8ab81ab84b4 /Modules/_sqlite
parent3e7d18a54b9243b9652c9ddab87c2b9153dc365f (diff)
downloadcpython-aee632dfbb0abbc0d2bcc988c43a736afd568c55.zip
cpython-aee632dfbb0abbc0d2bcc988c43a736afd568c55.tar.gz
cpython-aee632dfbb0abbc0d2bcc988c43a736afd568c55.tar.bz2
Remove some unused code in _pysqlite_query_execute() (GH-8495)
Unused since commit ab994ed8b97e1b0dac151ec827c857f5e7277565.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/cursor.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index e96f388..70b304f 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -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;
@@ -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);