summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2009-04-16 06:26:33 (GMT)
committerThomas Heller <theller@ctypes.org>2009-04-16 06:26:33 (GMT)
commit4954ffd98d07ee783a3c718129229ddf886c128c (patch)
tree199b514a7dc15aedc5220fa51f0dd1b7009a71f2 /Modules/_ctypes
parent6076d399b4a044c64d346a343d885248f824fd0b (diff)
downloadcpython-4954ffd98d07ee783a3c718129229ddf886c128c.zip
cpython-4954ffd98d07ee783a3c718129229ddf886c128c.tar.gz
cpython-4954ffd98d07ee783a3c718129229ddf886c128c.tar.bz2
Remove unneeded code.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/_ctypes.c5
-rw-r--r--Modules/_ctypes/callbacks.c11
-rw-r--r--Modules/_ctypes/ctypes.h2
3 files changed, 0 insertions, 18 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 360046b..43da209 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 0f8c8fa..ea43c68 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 cce733b..d5cb326 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,