mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
qapi-types: Bury code dead since commit 6b5abc7
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
c5ecd7e18f
commit
e1d4210c3a
|
@ -75,7 +75,6 @@ def generate_struct_fields(members):
|
|||
def generate_struct(expr):
|
||||
|
||||
structname = expr.get('struct', "")
|
||||
fieldname = expr.get('field', "")
|
||||
members = expr['data']
|
||||
base = expr.get('base')
|
||||
|
||||
|
@ -98,12 +97,9 @@ def generate_struct(expr):
|
|||
char qapi_dummy_field_for_empty_struct;
|
||||
''')
|
||||
|
||||
if len(fieldname):
|
||||
fieldname = " " + fieldname
|
||||
ret += mcgen('''
|
||||
}%(field)s;
|
||||
''',
|
||||
field=fieldname)
|
||||
};
|
||||
''')
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in a new issue