forked from Imagelibrary/seL4
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:
@@ -659,18 +659,6 @@ class Config:
|
|||||||
return sorted(self.matched_devices)
|
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()
|
@memoize()
|
||||||
def should_parse_regions(root, node):
|
def should_parse_regions(root, node):
|
||||||
""" returns True if we should parse regions found in this node. """
|
""" returns True if we should parse regions found in this node. """
|
||||||
|
|||||||
Reference in New Issue
Block a user