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:
parent
12c5e3fe26
commit
288383aa83
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user