Kaydet (Commit) 4954ffd9 authored tarafından Thomas Heller's avatar Thomas Heller

Remove unneeded code.

üst 6076d399
...@@ -5606,11 +5606,6 @@ init_ctypes(void) ...@@ -5606,11 +5606,6 @@ init_ctypes(void)
Py_INCREF(PyExc_ArgError); Py_INCREF(PyExc_ArgError);
PyModule_AddObject(m, "ArgumentError", PyExc_ArgError); PyModule_AddObject(m, "ArgumentError", PyExc_ArgError);
} }
/*************************************************
*
* Others...
*/
init_callbacks_in_module(m);
} }
/***************************************************************** /*****************************************************************
......
...@@ -466,17 +466,6 @@ CThunkObject *AllocFunctionCallback(PyObject *callable, ...@@ -466,17 +466,6 @@ CThunkObject *AllocFunctionCallback(PyObject *callable,
return NULL; return NULL;
} }
/****************************************************************************
*
* callback objects: initialization
*/
void init_callbacks_in_module(PyObject *m)
{
if (PyType_Ready((PyTypeObject *)&PyType_Type) < 0)
return;
}
#ifdef MS_WIN32 #ifdef MS_WIN32
static void LoadPython(void) static void LoadPython(void)
......
...@@ -189,8 +189,6 @@ extern PyTypeObject StructType_Type; ...@@ -189,8 +189,6 @@ extern PyTypeObject StructType_Type;
extern PyObject * extern PyObject *
CreateArrayType(PyObject *itemtype, Py_ssize_t length); CreateArrayType(PyObject *itemtype, Py_ssize_t length);
extern void init_callbacks_in_module(PyObject *m);
extern PyMethodDef module_methods[]; extern PyMethodDef module_methods[];
extern CThunkObject *AllocFunctionCallback(PyObject *callable, extern CThunkObject *AllocFunctionCallback(PyObject *callable,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment