1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

talloc: remove unused PyString_FromString_check_null() from pytalloc-util

metze
This commit is contained in:
Stefan Metzmacher 2010-12-08 15:09:33 +01:00
parent 12c5e3fe26
commit 288383aa83

View File

@ -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();