]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qapi: Drop temporary logic to support conversion step by step
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:07:12 +0000 (17:07 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 14 Dec 2022 19:05:07 +0000 (20:05 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221104160712.3005652-31-armbru@redhat.com>

scripts/qapi/schema.py

index 4594c69d0b8a0db43f4ea8eb1fba44a3f6e2923e..cd8661125cd274878709a37648dce44b530aa1a6 100644 (file)
@@ -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):