From 5efb40d6571457c3cc35b7a91088cc2fceee5763 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 4 Nov 2022 17:07:12 +0100 Subject: qapi: Drop temporary logic to support conversion step by step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Markus Armbruster Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20221104160712.3005652-31-armbru@redhat.com> --- scripts/qapi/schema.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'scripts/qapi') diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py index 4594c69..cd86611 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): -- cgit v1.1