summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/cmd/dependents.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/spack/spack/cmd/dependents.py b/lib/spack/spack/cmd/dependents.py
index 4cbb7cdd3c..7c997bad9d 100644
--- a/lib/spack/spack/cmd/dependents.py
+++ b/lib/spack/spack/cmd/dependents.py
@@ -47,16 +47,6 @@ def inverted_dependencies():
dependents of, e.g., `mpi`, but virtuals are not included as
actual dependents.
"""
- dag = {}
- for pkg_cls in spack.repo.PATH.all_package_classes():
- dag.setdefault(pkg_cls.name, set())
- for dep in pkg_cls.dependencies_by_name():
- deps = [dep]
-
- # expand virtuals if necessary
- if spack.repo.PATH.is_virtual(dep):
- deps += [s.name for s in spack.repo.PATH.providers_for(dep)]
-
dag = collections.defaultdict(set)
for pkg_cls in spack.repo.PATH.all_package_classes():
for _, deps_by_name in pkg_cls.dependencies.items():