From: Sebastien Bourdeauducq Date: Sat, 12 Sep 2015 11:34:44 +0000 (+0800) Subject: fhdl/decorators: remove deprecated API X-Git-Tag: 24jan2021_ls180~2099^2~3^2~95 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bdb9bee22e33391fb111884b2cb2e927f7d57a0;p=litex.git fhdl/decorators: remove deprecated API --- diff --git a/migen/fhdl/decorators.py b/migen/fhdl/decorators.py index 00ea2d22..0d566f93 100644 --- a/migen/fhdl/decorators.py +++ b/migen/fhdl/decorators.py @@ -1,5 +1,3 @@ -import warnings - from migen.fhdl.structure import * from migen.fhdl.module import Module from migen.fhdl.tools import insert_reset, rename_clock_domain @@ -53,16 +51,6 @@ class ModuleTransformer: else: return self.wrap_class(victim) - @classmethod - def adhoc(cls, i, *args, **kwargs): - warnings.warn("deprecated, use the plain transformer", DeprecationWarning, 2) - return cls(*args, **kwargs)(i) - - -def DecorateModule(transformer, *args, **kwargs): - warnings.warn("deprecated, use the plain transformer", DeprecationWarning, 2) - return transformer.__self__(*args, **kwargs) - class ControlInserter(ModuleTransformer): control_name = None # override this