From: Thomas Heller Date: Thu, 16 Apr 2009 06:26:33 +0000 (+0000) Subject: Remove unneeded code. X-Git-Tag: v2.7a1~1470 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4954ffd98d07ee783a3c718129229ddf886c128c;p=python Remove unneeded code. --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 360046bd0d..43da2095cd 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -5606,11 +5606,6 @@ init_ctypes(void) Py_INCREF(PyExc_ArgError); PyModule_AddObject(m, "ArgumentError", PyExc_ArgError); } - /************************************************* - * - * Others... - */ - init_callbacks_in_module(m); } /***************************************************************** diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c index 0f8c8fa966..ea43c68bc6 100644 --- a/Modules/_ctypes/callbacks.c +++ b/Modules/_ctypes/callbacks.c @@ -466,17 +466,6 @@ CThunkObject *AllocFunctionCallback(PyObject *callable, return NULL; } -/**************************************************************************** - * - * callback objects: initialization - */ - -void init_callbacks_in_module(PyObject *m) -{ - if (PyType_Ready((PyTypeObject *)&PyType_Type) < 0) - return; -} - #ifdef MS_WIN32 static void LoadPython(void) diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index cce733b345..d5cb326be5 100644 --- a/Modules/_ctypes/ctypes.h +++ b/Modules/_ctypes/ctypes.h @@ -189,8 +189,6 @@ extern PyTypeObject StructType_Type; extern PyObject * CreateArrayType(PyObject *itemtype, Py_ssize_t length); -extern void init_callbacks_in_module(PyObject *m); - extern PyMethodDef module_methods[]; extern CThunkObject *AllocFunctionCallback(PyObject *callable,