summaryrefslogtreecommitdiffstats
path: root/typewrappers.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-02-02 16:28:26 -0700
committerEric Blake <eblake@redhat.com>2012-02-03 10:41:44 -0700
commit29aedfa4f48a9cc25d9049b7fc3ecd849147274b (patch)
treeeb221ad07649c2f72e85f085da9d608ff3bb23e9 /typewrappers.c
parent1104c3ed216f3f46cfe62afbe70bb95f90787f69 (diff)
downloadlibvirt-python-split-29aedfa4f48a9cc25d9049b7fc3ecd849147274b.tar.gz
libvirt-python-split-29aedfa4f48a9cc25d9049b7fc3ecd849147274b.tar.xz
libvirt-python-split-29aedfa4f48a9cc25d9049b7fc3ecd849147274b.zip
python: drop redundant function
I noticed some redundant code while preparing my next patch. * python/generator.py (py_types): Fix 'const char *' mapping. * python/typewrappers.h (libvirt_charPtrConstWrap): Drop. * python/typewrappers.c (libvirt_charPtrConstWrap): Delete, since it is identical to libvirt_constcharPtrWrap.
Diffstat (limited to 'typewrappers.c')
-rw-r--r--typewrappers.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/typewrappers.c b/typewrappers.c
index b5758b4..9021ce3 100644
--- a/typewrappers.c
+++ b/typewrappers.c
@@ -118,19 +118,6 @@ libvirt_constcharPtrWrap(const char *str)
}
PyObject *
-libvirt_charPtrConstWrap(const char *str)
-{
- PyObject *ret;
-
- if (str == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyString_FromString(str);
- return (ret);
-}
-
-PyObject *
libvirt_virDomainPtrWrap(virDomainPtr node)
{
PyObject *ret;