Remove computation of pkg_index and req_map

because they are already passed into the `render_tree` function.
This commit is contained in:
Marc Abramowitz 2014-06-16 17:06:16 -07:00
parent e40eec924c
commit 8e2b6a5f1e
1 changed files with 0 additions and 2 deletions

View File

@ -127,8 +127,6 @@ def render_tree(pkgs, pkg_index, req_map, list_all,
:rtype: str
"""
pkg_index = dict((p.key, p) for p in pkgs)
req_map = dict((p, p.requires()) for p in pkgs)
non_top = set(r.key for r in flatten(req_map.values()))
top = [p for p in pkgs if p.key not in non_top]