[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 28/28] qapi: Drop temporary logic to support conversion step by
From: |
Markus Armbruster |
Subject: |
[PULL v2 28/28] qapi: Drop temporary logic to support conversion step by step |
Date: |
Wed, 26 Oct 2022 20:35:32 +0200 |
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221018062849.3420573-29-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
scripts/qapi/schema.py | 6 ------
1 file changed, 6 deletions(-)
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 @@ def __init__(self, name, info, typ, optional, ifcond=None,
features=None):
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):
--
2.37.3
- [PULL v2 05/28] qapi tests: Elide redundant has_FOO in generated C, (continued)
- [PULL v2 05/28] qapi tests: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 20/28] qapi rocker: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 09/28] qapi chardev: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 16/28] qapi net: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 24/28] qapi transaction: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 13/28] qapi machine: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 17/28] qapi pci: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 10/28] qapi crypto: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 18/28] qapi qdev qom: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 21/28] qapi run-state: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 28/28] qapi: Drop temporary logic to support conversion step by step,
Markus Armbruster <=
- [PULL v2 12/28] qapi job: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 22/28] qapi stats: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 08/28] qapi block: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 23/28] qapi tpm: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- [PULL v2 19/28] qapi replay: Elide redundant has_FOO in generated C, Markus Armbruster, 2022/10/26
- Re: [PULL v2 00/28] QAPI patches patches for 2022-10-25, Stefan Hajnoczi, 2022/10/30