summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-06-12 09:45:55 +0200
committerMarkus Armbruster <armbru@redhat.com>2015-06-18 14:19:48 +0200
commite1d4210c3a50059a3889cedc44a8aa193fa63d7d (patch)
tree745088c99ef8605b0e11b9fae2a720307f7705d1 /scripts
parentc5ecd7e18f912ab5e91f09b0333fb07567885d42 (diff)
downloadqemu-e1d4210c3a50059a3889cedc44a8aa193fa63d7d.tar.gz
qemu-e1d4210c3a50059a3889cedc44a8aa193fa63d7d.tar.bz2
qemu-e1d4210c3a50059a3889cedc44a8aa193fa63d7d.zip
qapi-types: Bury code dead since commit 6b5abc7
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi-types.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 12fb2eff04..d28a6b07be 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -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