[Qemu-devel] [PATCH for-2.9 39/47] qapi: Drop unused variable events

Markus Armbruster posted 47 patches 8 years, 7 months ago
There is a newer version of this series
[Qemu-devel] [PATCH for-2.9 39/47] qapi: Drop unused variable events
Posted by Markus Armbruster 8 years, 7 months ago
Missed in commit e98859a

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 scripts/qapi.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/scripts/qapi.py b/scripts/qapi.py
index 0da426a..12b1bda 100644
--- a/scripts/qapi.py
+++ b/scripts/qapi.py
@@ -49,7 +49,6 @@ name_case_whitelist = []
 enum_types = []
 struct_types = []
 union_types = []
-events = []
 all_names = {}
 
 #
@@ -751,14 +750,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)
-- 
2.7.4


Re: [Qemu-devel] [PATCH for-2.9 39/47] qapi: Drop unused variable events
Posted by Eric Blake 8 years, 7 months ago
On 03/13/2017 01:18 AM, Markus Armbruster wrote:
> Missed in commit e98859a
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  scripts/qapi.py | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/scripts/qapi.py b/scripts/qapi.py
> index 0da426a..12b1bda 100644
> --- a/scripts/qapi.py
> +++ b/scripts/qapi.py
> @@ -49,7 +49,6 @@ name_case_whitelist = []
>  enum_types = []
>  struct_types = []
>  union_types = []
> -events = []
>  all_names = {}

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org