mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/visit: remove TransformModule
This commit is contained in:
parent
e702fb7727
commit
db76defa2a
1 changed files with 0 additions and 11 deletions
|
@ -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 a new issue