From: Markus Armbruster Date: Fri, 4 Nov 2022 16:07:12 +0000 (+0100) Subject: qapi: Drop temporary logic to support conversion step by step X-Git-Tag: qemu-xen-4.18.0-rc5~391^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5efb40d6571457c3cc35b7a91088cc2fceee5763;p=qemu-xen.git qapi: Drop temporary logic to support conversion step by step Signed-off-by: Markus Armbruster Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20221104160712.3005652-31-armbru@redhat.com> --- diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py index 4594c69d0b..cd8661125c 100644 --- a/scripts/qapi/schema.py +++ b/scripts/qapi/schema.py @@ -757,12 +757,6 @@ class QAPISchemaObjectTypeMember(QAPISchemaMember): def need_has(self): assert self.type - # Temporary hack to support dropping the has_FOO in reviewable chunks - opt_out = [] - if self.info and any(self.info.fname.endswith(mod) - for mod in opt_out): - return self.optional - # End of temporary hack return self.optional and self.type.need_has_if_optional() def check(self, schema):