diff Objects/tupleobject.c @ 61265:7be8129ee0fd legacy-trunk

Remove an unneeded variable assignment. Found using Clang's static analyzer.
author Brett Cannon <bcannon@gmail.com>
date Wed, 05 May 2010 20:18:23 +0000
parents 1c6fc70f49d1
children fd25030223b0
line wrap: on
line diff
--- a/Objects/tupleobject.c	Wed May 05 20:16:50 2010 +0000
+++ b/Objects/tupleobject.c	Wed May 05 20:18:23 2010 +0000
@@ -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)