]> granicus.if.org Git - python/commitdiff
Remove unneeded code.
authorThomas Heller <theller@ctypes.org>
Thu, 16 Apr 2009 06:26:33 +0000 (06:26 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 16 Apr 2009 06:26:33 +0000 (06:26 +0000)
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callbacks.c
Modules/_ctypes/ctypes.h

index 360046bd0da2ce3feff8837cb67f5606b3b10330..43da2095cdfea6188bb06eab68d2de857ce4bb71 100644 (file)
@@ -5606,11 +5606,6 @@ init_ctypes(void)
                Py_INCREF(PyExc_ArgError);
                PyModule_AddObject(m, "ArgumentError", PyExc_ArgError);
        }
-       /*************************************************
-        *
-        * Others...
-        */
-       init_callbacks_in_module(m);
 }
 
 /*****************************************************************
index 0f8c8fa966da88cbf4b7209536e66529b63e01a5..ea43c68bc6c4f6062f57a9297e22e8c96e3578df 100644 (file)
@@ -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)
index cce733b3456618c90cf0d2da652eda4cfe9bf8c3..d5cb326be5c172bc8bd900f465e8a523e698e8f2 100644 (file)
@@ -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,