diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-12-08 15:09:33 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-12-08 19:07:11 +0100 |
commit | 288383aa83617baa3c17ac3a2ba997a4a9bbc462 (patch) | |
tree | e7ac7759e4f387ff050dc785382c226064f39587 /lib | |
parent | 12c5e3fe26e729a4a01e66f5418d0977ef6de025 (diff) | |
download | samba-288383aa83617baa3c17ac3a2ba997a4a9bbc462.tar.gz samba-288383aa83617baa3c17ac3a2ba997a4a9bbc462.tar.bz2 samba-288383aa83617baa3c17ac3a2ba997a4a9bbc462.zip |
talloc: remove unused PyString_FromString_check_null() from pytalloc-util
metze
Diffstat (limited to 'lib')
-rw-r--r-- | lib/talloc/pytalloc_util.c | 8 |
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(); |