qapi: Drop unused 'kind' for struct/enum visit
commit337283dffbb5ad5860ed00408a5fd0665c21be07
authorEric Blake <eblake@redhat.com>
Fri, 29 Jan 2016 13:48:57 +0000 (29 06:48 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 Feb 2016 16:29:57 +0000 (8 17:29 +0100)
tree9f98622d9408d8715271e9f960f1fb1d0c6fd745
parent0b2a0d6bb2446060944061e53e87d0c7addede79
qapi: Drop unused 'kind' for struct/enum visit

visit_start_struct() and visit_type_enum() had a 'kind' argument
that was usually set to either the stringized version of the
corresponding qapi type name, or to NULL (although some clients
didn't even get that right).  But nothing ever used the argument.
It's even hard to argue that it would be useful in a debugger,
as a stack backtrace also tells which type is being visited.

Therefore, drop the 'kind' argument as dead.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1454075341-13658-22-git-send-email-eblake@redhat.com>
[Harmless rebase mistake cleaned up]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
15 files changed:
hmp.c
hw/core/qdev-properties.c
hw/ppc/spapr_drc.c
hw/virtio/virtio-balloon.c
include/qapi/visitor-impl.h
include/qapi/visitor.h
qapi/opts-visitor.c
qapi/qapi-dealloc-visitor.c
qapi/qapi-visit-core.c
qapi/qmp-input-visitor.c
qapi/qmp-output-visitor.c
qom/object.c
scripts/qapi-event.py
scripts/qapi-visit.py
vl.c