qapi/introspect.py: remove _gen_variants helper
commitcf5db2142b674ebab8e0799fd07e3884cfb00fc5
authorJohn Snow <jsnow@redhat.com>
Tue, 16 Feb 2021 02:18:03 +0000 (15 21:18 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Feb 2021 18:45:20 +0000 (18 19:45 +0100)
tree5c261f31c125217248b0b06e56c2e599ae4ef907
parentc0e8d9f3c199357d89f362c54e1edced82c3c084
qapi/introspect.py: remove _gen_variants helper

It is easier to give a name to all of the dictly-typed objects we pass
around in introspect.py by removing this helper, as it does not return
an object that has any knowable type by itself.

Inline it into its only caller instead.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210216021809.134886-14-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/introspect.py