fhdl/autofragment: remove legacy functions
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 9 Mar 2013 22:05:45 +0000 (23:05 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 9 Mar 2013 22:05:45 +0000 (23:05 +0100)
migen/fhdl/autofragment.py

index 4ff36086d77434bfa8c60f3f41a26f65a00ae80f..66124763b96bc131ac7204b8a50dcfab66d0efc2 100644 (file)
@@ -1,25 +1,6 @@
-import inspect
-
 from migen.fhdl.structure import *
 from migen.fhdl.specials import Special
 
-def from_local():
-       f = Fragment()
-       frame = inspect.currentframe().f_back
-       ns = frame.f_locals
-       for x in ns:
-               obj = ns[x]
-               if hasattr(obj, "get_fragment"):
-                       f += obj.get_fragment()
-       return f
-
-def from_attributes(obj):
-       f = Fragment()
-       for x in obj.__dict__.values():
-               if hasattr(x, "get_fragment"):
-                       f += x.get_fragment()
-       return f
-
 class _FModuleProxy:
        def __init__(self, fm):
                object.__setattr__(self, "_fm", fm)