[Python-checkins] r80811 - python/trunk/Objects/tupleobject.c

brett.cannon python-checkins at python.org
Wed May 5 22:18:23 CEST 2010


Author: brett.cannon
Date: Wed May  5 22:18:23 2010
New Revision: 80811

Log:
Remove an unneeded variable assignment.

Found using Clang's static analyzer.


Modified:
   python/trunk/Objects/tupleobject.c

Modified: python/trunk/Objects/tupleobject.c
==============================================================================
--- python/trunk/Objects/tupleobject.c	(original)
+++ python/trunk/Objects/tupleobject.c	Wed May  5 22:18:23 2010
@@ -7,7 +7,7 @@
 #ifndef PyTuple_MAXSAVESIZE
 #define PyTuple_MAXSAVESIZE	20  /* Largest tuple to save on free list */
 #endif
-#ifndef PyTuple_MAXFREELIST 
+#ifndef PyTuple_MAXFREELIST
 #define PyTuple_MAXFREELIST  2000  /* Maximum number of tuples of each size to save */
 #endif
 
@@ -86,7 +86,6 @@
 		{
 			return PyErr_NoMemory();
 		}
-		nbytes += sizeof(PyTupleObject) - sizeof(PyObject *);
 
 		op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size);
 		if (op == NULL)


More information about the Python-checkins mailing list