projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e702fb7
)
fhdl/visit: remove TransformModule
author
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sat, 4 Apr 2015 12:12:22 +0000
(20:12 +0800)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sat, 4 Apr 2015 12:12:22 +0000
(20:12 +0800)
migen/fhdl/visit.py
patch
|
blob
|
history
diff --git
a/migen/fhdl/visit.py
b/migen/fhdl/visit.py
index ab7a1b85087559d7c836ca84b731af285e474927..386c038bdf3c57288bc48cde04d42ff56efee075 100644
(file)
--- a/
migen/fhdl/visit.py
+++ b/
migen/fhdl/visit.py
@@
-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())