aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2022-11-04 17:07:12 +0100
committerMarkus Armbruster <armbru@redhat.com>2022-12-14 20:05:07 +0100
commit5efb40d6571457c3cc35b7a91088cc2fceee5763 (patch)
treeb791c237dc9ad987afd5d604947f3f6e3dae7928 /scripts
parent91eab32a3fcc14d3243cbd1c97f022796d4063e6 (diff)
downloadqemu-5efb40d6571457c3cc35b7a91088cc2fceee5763.zip
qemu-5efb40d6571457c3cc35b7a91088cc2fceee5763.tar.gz
qemu-5efb40d6571457c3cc35b7a91088cc2fceee5763.tar.bz2
qapi: Drop temporary logic to support conversion step by step
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi/schema.py6
1 files changed, 0 insertions, 6 deletions
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):