fhdl/visit: remove TransformModule
authorSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 4 Apr 2015 12:12:22 +0000 (20:12 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 4 Apr 2015 12:12:22 +0000 (20:12 +0800)
migen/fhdl/visit.py

index ab7a1b85087559d7c836ca84b731af285e474927..386c038bdf3c57288bc48cde04d42ff56efee075 100644 (file)
@@ -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())