Browse Source

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>
Markus Armbruster 2 năm trước cách đây
mục cha
commit
5efb40d657
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      scripts/qapi/schema.py

+ 0 - 6
scripts/qapi/schema.py

@@ -757,12 +757,6 @@ def __init__(self, name, info, typ, optional, ifcond=None, features=None):
 
 
     def need_has(self):
     def need_has(self):
         assert self.type
         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()
         return self.optional and self.type.need_has_if_optional()
 
 
     def check(self, schema):
     def check(self, schema):