]> granicus.if.org Git - python/commitdiff
Remove an unnecessary variable.
authorBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:14:27 +0000 (20:14 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:14:27 +0000 (20:14 +0000)
Found using Clang's static analyzer.

Modules/_sqlite/connection.c

index 64e27cd33653a85133f7a8445a96f13d00a6242e..76665808f2d8b99efbf08e5de44b82493c761458 100644 (file)
@@ -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