[Python-checkins] cpython (2.7): remove dead code
benjamin.peterson
python-checkins at python.org
Sat Dec 15 21:46:30 CET 2012
http://hg.python.org/cpython/rev/3d518ef4eae7
changeset: 80868:3d518ef4eae7
branch: 2.7
parent: 80858:2186f7b99c28
user: Benjamin Peterson <benjamin at python.org>
date: Sat Dec 15 15:43:58 2012 -0500
summary:
remove dead code
files:
Modules/_ctypes/_ctypes.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -2526,8 +2526,6 @@
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))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list