From 7eb8a1a0cb0b1b84bd9748e1e584f143c70b9e97 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 15 Dec 2012 15:43:58 -0500 Subject: [PATCH] remove dead code --- Modules/_ctypes/_ctypes.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 603b3b8d8cf..73ab2fdc422 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -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))