]> www.infradead.org Git - users/dwmw2/qemu.git/commit
qapi: Drop check_type()'s redundant parameter @allow_optional
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Sep 2019 20:13:35 +0000 (22:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 24 Sep 2019 12:07:22 +0000 (14:07 +0200)
commitdcca907bed4707f8fa8bbfdd9eef741fdaad29f8
treef857ae231dcf61bea1d742d825f372b1e02a20bc
parentb1862ee6233805172bab89a1fc44e929dcdbd9fa
qapi: Drop check_type()'s redundant parameter @allow_optional

check_type() uses @allow_optional only when @value is a dictionary and
@allow_dict is True.  All callers that pass allow_dict=True also pass
allow_optional=True.

Therefore, @allow_optional is always True when check_type() uses it.
Drop the redundant parameter.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190913201349.24332-3-armbru@redhat.com>
scripts/qapi/common.py