mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
Remove unused variable
This commit is contained in:
parent
1971a56a5c
commit
82f43f056d
@ -1222,7 +1222,7 @@ def isboundmethod(m):
|
||||
return ismethod(m) and m.__self__ is not None
|
||||
|
||||
|
||||
def _analyzeTopFunc(top_inst, func, *args, **kwargs):
|
||||
def _analyzeTopFunc(func, *args, **kwargs):
|
||||
tree = _makeAST(func)
|
||||
v = _AnalyzeTopFuncVisitor(func, tree, *args, **kwargs)
|
||||
v.visit(tree)
|
||||
|
@ -170,8 +170,7 @@ class _ToVHDLConvertor(object):
|
||||
_annotateTypes(genlist)
|
||||
|
||||
### infer interface
|
||||
top_inst = h.hierarchy[0]
|
||||
intf = _analyzeTopFunc(top_inst, func, *args, **kwargs)
|
||||
intf = _analyzeTopFunc(func, *args, **kwargs)
|
||||
intf.name = name
|
||||
# sanity checks on interface
|
||||
for portname in intf.argnames:
|
||||
@ -2257,10 +2256,3 @@ def _annotateTypes(genlist):
|
||||
continue
|
||||
v = _AnnotateTypesVisitor(tree)
|
||||
v.visit(tree)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -151,8 +151,8 @@ class _ToVerilogConvertor(object):
|
||||
genlist = _analyzeGens(arglist, h.absnames)
|
||||
siglist, memlist = _analyzeSigs(h.hierarchy)
|
||||
_annotateTypes(genlist)
|
||||
top_inst = h.hierarchy[0]
|
||||
intf = _analyzeTopFunc(top_inst, func, *args, **kwargs)
|
||||
|
||||
intf = _analyzeTopFunc(func, *args, **kwargs)
|
||||
intf.name = name
|
||||
doc = _makeDoc(inspect.getdoc(func))
|
||||
|
||||
@ -1570,6 +1570,3 @@ def _annotateTypes(genlist):
|
||||
continue
|
||||
v = _AnnotateTypesVisitor(tree)
|
||||
v.visit(tree)
|
||||
|
||||
|
||||
|
||||
|
@ -8,3 +8,6 @@ ghdl:
|
||||
|
||||
clean:
|
||||
- rm *.o *.out *.v *.vhd *.pyc *~ *.vcd* *.log *_ghdl
|
||||
|
||||
gitclean:
|
||||
git clean -dfx
|
||||
|
Loading…
x
Reference in New Issue
Block a user