mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-24 00:58:54 +03:00
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.
This commit is contained in:
@ -263,7 +263,7 @@ py_types = {
|
||||
'unsigned long long': ('l', None, "longlong", "long long"),
|
||||
'unsigned char *': ('z', None, "charPtr", "char *"),
|
||||
'char *': ('z', None, "charPtr", "char *"),
|
||||
'const char *': ('z', None, "charPtrConst", "const char *"),
|
||||
'const char *': ('z', None, "constcharPtr", "const char *"),
|
||||
'size_t': ('n', None, "size_t", "size_t"),
|
||||
|
||||
'virDomainPtr': ('O', "virDomain", "virDomainPtr", "virDomainPtr"),
|
||||
|
Reference in New Issue
Block a user