diff --git a/tools/hardware_gen.py b/tools/hardware_gen.py index f1b64c9d7..4af6aa63e 100644 --- a/tools/hardware_gen.py +++ b/tools/hardware_gen.py @@ -659,18 +659,6 @@ class Config: return sorted(self.matched_devices) -def is_compatible(node, compatibles): - """ returns True if node matches a compatible in the given list """ - try: - prop = node.index("compatible") - except ValueError: - return False - for c in compatibles: - if c in node[prop].strings: - return True - return False - - @memoize() def should_parse_regions(root, node): """ returns True if we should parse regions found in this node. """