[Python-checkins] r80807 - python/trunk/Modules/_sqlite/connection.c

brett.cannon python-checkins at python.org
Wed May 5 22:14:27 CEST 2010


Author: brett.cannon
Date: Wed May  5 22:14:27 2010
New Revision: 80807

Log:
Remove an unnecessary variable.

Found using Clang's static analyzer.


Modified:
   python/trunk/Modules/_sqlite/connection.c

Modified: python/trunk/Modules/_sqlite/connection.c
==============================================================================
--- python/trunk/Modules/_sqlite/connection.c	(original)
+++ python/trunk/Modules/_sqlite/connection.c	Wed May  5 22:14:27 2010
@@ -745,7 +745,6 @@
 {
     PyObject* function_result = NULL;
     PyObject** aggregate_instance;
-    PyObject* aggregate_class;
 
 #ifdef WITH_THREAD
     PyGILState_STATE threadstate;
@@ -753,8 +752,6 @@
     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


More information about the Python-checkins mailing list