1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-03 08:21:58 +03:00

libvirt-utils: remove unused py_str function

Commit <57a160b5248ba47d4e1c9d22d95847dad8e0524f> removed last usage
but did not remove the function itself.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2018-06-01 11:12:10 +02:00
parent c682257e6f
commit fb70ad1599
2 changed files with 0 additions and 15 deletions

View File

@ -199,20 +199,6 @@ virTypedParamsFree(virTypedParameterPtr params,
}
#endif /* ! LIBVIR_CHECK_VERSION(1, 0, 2) */
char *
py_str(PyObject *obj)
{
PyObject *str = PyObject_Str(obj);
char *ret;
if (!str) {
PyErr_Print();
PyErr_Clear();
return NULL;
};
libvirt_charPtrUnwrap(str, &ret);
return ret;
}
/* Helper function to convert a virTypedParameter output array into a
* Python dictionary for return to the user. Return NULL on failure,
* after raising a python exception. */

View File

@ -319,7 +319,6 @@ void virTypedParamsClear(virTypedParameterPtr params, int nparams);
void virTypedParamsFree(virTypedParameterPtr params, int nparams);
# endif /* ! LIBVIR_CHECK_VERSION(1, 0, 2) */
char * py_str(PyObject *obj);
PyObject * getPyVirTypedParameter(const virTypedParameter *params,
int nparams);
virTypedParameterPtr setPyVirTypedParameter(PyObject *info,