diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2018-06-01 11:12:10 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2018-06-12 10:27:14 +0200 |
commit | fb70ad159992c2290ae73a243682982e778dd796 (patch) | |
tree | ba595c6d58d315bb4c51875c46e398755d6c20be /libvirt-utils.c | |
parent | c682257e6fc6a99c6aa2d30fdce75f9ffc8522bf (diff) | |
download | libvirt-python-fb70ad159992c2290ae73a243682982e778dd796.tar.gz |
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>
Diffstat (limited to 'libvirt-utils.c')
-rw-r--r-- | libvirt-utils.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libvirt-utils.c b/libvirt-utils.c index f7b4478..e17e794 100644 --- a/libvirt-utils.c +++ b/libvirt-utils.c @@ -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. */ |