fhdl/decorators: remove deprecated API

This commit is contained in:
Sebastien Bourdeauducq 2015-09-12 19:34:44 +08:00
parent 336728413a
commit 1bdb9bee22
1 changed files with 0 additions and 12 deletions

View File

@ -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