summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2017-01-19 15:21:01 +0000
committerDaniel P. Berrange <berrange@redhat.com>2017-01-27 09:58:40 +0000
commitbc90127cb6d2fff653ca7533bf32b8fe5c268b1d (patch)
tree92cce65b27d1f059d8543ea0eae89eedb291c7ef
parent0c53a316ead3c90e5974daeb937bc63a3e775905 (diff)
downloadlibvirt-python-bc90127cb6d2fff653ca7533bf32b8fe5c268b1d.tar.gz
Removed unused 'foreign_encoding_args' code from generator
The 'foreign_encoding_args' data structure and associated code in the generator is inherited from libxml. This has never been used in libvirt, so delete it to simplify the generator. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rwxr-xr-xgenerator.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/generator.py b/generator.py
index 3dce74b..decda72 100755
--- a/generator.py
+++ b/generator.py
@@ -370,9 +370,6 @@ py_return_types = {
unknown_types = {}
-foreign_encoding_args = (
-)
-
#######################################################################
#
# This part writes the C <-> Python stubs libvirt.[ch] and
@@ -693,8 +690,6 @@ def print_function_wrapper(module, name, output, export, include):
c_args = c_args + " %s %s;\n" % (arg[1], arg[0])
if arg[1] in py_types:
(f, t, n, c) = py_types[arg[1]]
- if (f == 'z') and (name in foreign_encoding_args) and (num_bufs == 0):
- f = 't#'
if f is not None:
format = format + f
if t is not None: