summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-05 20:14:27 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-05-05 20:14:27 (GMT)
commita1b562943b7c14fe85252f40a1a24b7ef1ea9491 (patch)
treec1acb2073a4369fb1a430ffecb8335e3a196cc27 /Modules/_sqlite/connection.c
parent9545a23c7ffb35417d451d24cc3b0339627965a7 (diff)
downloadcpython-a1b562943b7c14fe85252f40a1a24b7ef1ea9491.zip
cpython-a1b562943b7c14fe85252f40a1a24b7ef1ea9491.tar.gz
cpython-a1b562943b7c14fe85252f40a1a24b7ef1ea9491.tar.bz2
Remove an unnecessary variable.
Found using Clang's static analyzer.
Diffstat (limited to 'Modules/_sqlite/connection.c')
-rw-r--r--Modules/_sqlite/connection.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 64e27cd..7666580 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -745,7 +745,6 @@ void _pysqlite_final_callback(sqlite3_context* context)
{
PyObject* function_result = NULL;
PyObject** aggregate_instance;
- PyObject* aggregate_class;
#ifdef WITH_THREAD
PyGILState_STATE threadstate;
@@ -753,8 +752,6 @@ void _pysqlite_final_callback(sqlite3_context* context)
threadstate = PyGILState_Ensure();
#endif
- aggregate_class = (PyObject*)sqlite3_user_data(context);
-
aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*));
if (!*aggregate_instance) {
/* this branch is executed if there was an exception in the aggregate's