qapi: Drop unused variable events

Missed in commit e98859a

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-40-git-send-email-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2017-03-15 13:57:28 +01:00
parent a9f396b028
commit 062e856b15

View File

@ -49,7 +49,6 @@ name_case_whitelist = []
enum_types = []
struct_types = []
union_types = []
events = []
all_names = {}
#
@ -756,14 +755,12 @@ def check_command(expr, info):
def check_event(expr, info):
global events
name = expr['event']
boxed = expr.get('boxed', False)
meta = ['struct']
if boxed:
meta += ['union', 'alternate']
events.append(name)
check_type(info, "'data' for event '%s'" % name,
expr.get('data'), allow_dict=not boxed, allow_optional=True,
allow_metas=meta)