hardware_gen: Remove unused method is_compatible
Not used and it is unlikely that it will be needed in the near future.
This commit is contained in:
parent
51f55342ca
commit
ad45ffc1e4
1 changed files with 0 additions and 12 deletions
|
|
@ -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. """
|
||||
|
|
|
|||
Loading…
Reference in a new issue