]> granicus.if.org Git - python/commitdiff
remove dead code
authorBenjamin Peterson <benjamin@python.org>
Sat, 15 Dec 2012 20:43:58 +0000 (15:43 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 15 Dec 2012 20:43:58 +0000 (15:43 -0500)
Modules/_ctypes/_ctypes.c

index 603b3b8d8cf412e450d9a7ea4907a3e7f217c4be..73ab2fdc42249cdf3bc01d679c04d24c41f41ea6 100644 (file)
@@ -2438,8 +2438,6 @@ PyCData_traverse(CDataObject *self, visitproc visit, void *arg)
 static int
 PyCData_clear(CDataObject *self)
 {
-    StgDictObject *dict = PyObject_stgdict((PyObject *)self);
-    assert(dict); /* Cannot be NULL for CDataObject instances */
     Py_CLEAR(self->b_objects);
     if ((self->b_needsfree)
         && _CDataObject_HasExternalBuffer(self))