From: Sebastien Bourdeauducq Date: Sat, 4 Apr 2015 12:12:22 +0000 (+0800) Subject: fhdl/visit: remove TransformModule X-Git-Tag: 24jan2021_ls180~2099^2~126 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db76defa2a2ba0d9c67500a764c8f5fdc7b087d2;p=litex.git fhdl/visit: remove TransformModule --- diff --git a/migen/fhdl/visit.py b/migen/fhdl/visit.py index ab7a1b85..386c038b 100644 --- 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())