mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-03 08:21:58 +03:00
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>
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user