qapi-types: Bury code dead since commit 6b5abc7

Backports commit e1d4210c3a50059a3889cedc44a8aa193fa63d7d from qemu
This commit is contained in:
Markus Armbruster 2018-02-19 15:58:03 -05:00 committed by Lioncash
parent 9a3972b6b2
commit 21b2c489af
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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 @@ struct %(name)s
char qapi_dummy_field_for_empty_struct;
''')
if len(fieldname):
fieldname = " " + fieldname
ret += mcgen('''
}%(field)s;
''',
field=fieldname)
};
''')
return ret