summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/pytalloc_util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/talloc/pytalloc_util.c b/lib/talloc/pytalloc_util.c
index d082ee89e7..65d830f30e 100644
--- a/lib/talloc/pytalloc_util.c
+++ b/lib/talloc/pytalloc_util.c
@@ -110,14 +110,6 @@ PyObject *PyCObject_FromTallocPtr(void *ptr)
return PyCObject_FromVoidPtr(ptr, py_cobject_talloc_free);
}
-PyObject *PyString_FromString_check_null(const char *ptr)
-{
- if (ptr == NULL) {
- Py_RETURN_NONE;
- }
- return PyString_FromString(ptr);
-}
-
int PyTalloc_Check(PyObject *obj)
{
PyTypeObject *tp = PyTalloc_GetObjectType();