summaryrefslogtreecommitdiff
path: root/Cython/Utility/Capsule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Utility/Capsule.c')
-rw-r--r--Cython/Utility/Capsule.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/Cython/Utility/Capsule.c b/Cython/Utility/Capsule.c
deleted file mode 100644
index cc4fe0d88..000000000
--- a/Cython/Utility/Capsule.c
+++ /dev/null
@@ -1,20 +0,0 @@
-//////////////// Capsule.proto ////////////////
-
-/* Todo: wrap the rest of the functionality in similar functions */
-static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig);
-
-//////////////// Capsule ////////////////
-
-static CYTHON_INLINE PyObject *
-__pyx_capsule_create(void *p, CYTHON_UNUSED const char *sig)
-{
- PyObject *cobj;
-
-#if PY_VERSION_HEX >= 0x02070000
- cobj = PyCapsule_New(p, sig, NULL);
-#else
- cobj = PyCObject_FromVoidPtr(p, NULL);
-#endif
-
- return cobj;
-}