summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-02-07 17:14:11 -0700
committerEric Blake <eblake@redhat.com>2012-02-07 17:14:11 -0700
commit2b9c2fecd1dfc3b7ee162acf35f1435d6756285b (patch)
treec73c2155790e0bdcebcff2ac3690e3fce3c05dc8
parentc3a50490e998992011e69d34341be826e4775da1 (diff)
downloadlibvirt-python-split-0.9.10-rc2.tar.gz
libvirt-python-split-0.9.10-rc2.tar.xz
libvirt-python-split-0.9.10-rc2.zip
python: drop unused functionv0.9.10-rc2
Gcc warned about an unused static function. * python/libvirt-qemu-override.c (py_str): Delete.
-rw-r--r--libvirt-qemu-override.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/libvirt-qemu-override.c b/libvirt-qemu-override.c
index 485c809..c220af1 100644
--- a/libvirt-qemu-override.c
+++ b/libvirt-qemu-override.c
@@ -4,7 +4,7 @@
* entry points where an automatically generated stub is
* unpractical
*
- * Copyright (C) 2011 Red Hat, Inc.
+ * Copyright (C) 2011-2012 Red Hat, Inc.
*
* Daniel Veillard <veillard@redhat.com>
*/
@@ -47,20 +47,6 @@ extern void initcygvirtmod_qemu(void);
#define VIR_PY_INT_FAIL (libvirt_intWrap(-1))
#define VIR_PY_INT_SUCCESS (libvirt_intWrap(0))
-/* We don't want to free() returned value. As written in doc:
- * PyString_AsString returns pointer to 'internal buffer of string,
- * not a copy' and 'It must not be deallocated'. */
-static char *py_str(PyObject *obj)
-{
- PyObject *str = PyObject_Str(obj);
- if (!str) {
- PyErr_Print();
- PyErr_Clear();
- return NULL;
- };
- return PyString_AsString(str);
-}
-
/************************************************************************
* *
* Statistics *