fhdl/visit: remove TransformModule
This commit is contained in:
parent
e702fb7727
commit
db76defa2a
|
@ -197,14 +197,3 @@ class NodeTransformer:
|
|||
|
||||
def visit_unknown(self, node):
|
||||
return node
|
||||
|
||||
class TransformModule:
|
||||
def __init__(self, transform, module):
|
||||
self.transform = transform
|
||||
self.module = module
|
||||
self.get_fragment_called = False
|
||||
|
||||
def get_fragment(self):
|
||||
assert(not self.get_fragment_called)
|
||||
self.get_fragment_called = True
|
||||
return self.transform(self.module.get_fragment())
|
||||
|
|
Loading…
Reference in New Issue