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:
@ -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. */
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user