diff options
author | Markus Armbruster | 2015-06-28 21:36:26 +0200 |
---|---|---|
committer | Markus Armbruster | 2015-09-04 15:47:13 +0200 |
commit | 5aa05d3f72e556752167f7005d6a3dea0f4432c5 (patch) | |
tree | d3673f5ea92795f8334c10976c992bf451ade042 /scripts/qapi-event.py | |
parent | qapi: Reject -p arguments that break qapi-event.py (diff) | |
download | qemu-5aa05d3f72e556752167f7005d6a3dea0f4432c5.tar.gz qemu-5aa05d3f72e556752167f7005d6a3dea0f4432c5.tar.xz qemu-5aa05d3f72e556752167f7005d6a3dea0f4432c5.zip |
qapi: Drop unused and useless parameters and variables
gen_sync_call()'s parameter indent is useless: gen_sync_call() uses it
only as optional argument for push_indent() and pop_indent(), their
default is four, and gen_sync_call()'s only caller passes four. Drop
the parameter.
gen_visitor_input_containers_decl()'s parameter obj is always
"QOBJECT(args)". Use that, and drop the parameter.
Drop unused parameters of gen_marshal_output(),
gen_marshal_input_decl(), generate_visit_struct_body(),
generate_visit_list(), generate_visit_enum(), generate_declaration(),
generate_enum_declaration(), generate_decl_enum().
Drop unused variables in generate_event_enum_lookup(),
generate_enum_lookup(), generate_visit_struct_fields(), check_event().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi-event.py')
-rw-r--r-- | scripts/qapi-event.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/qapi-event.py b/scripts/qapi-event.py index cc74f4dc22..88b0620d00 100644 --- a/scripts/qapi-event.py +++ b/scripts/qapi-event.py @@ -199,7 +199,6 @@ const char *%(event_enum_name)s_lookup[] = { ''', event_enum_name = event_enum_name) - i = 0 for string in event_enum_strings: ret += mcgen(''' "%(string)s", |