summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-07-15 23:38:01 -0500
committerGitHub <noreply@github.com>2024-07-16 06:38:01 +0200
commita11da7bdb9d75ba43a40172423efe45368cc4664 (patch)
tree8bb7c8b669efa1a98b63d99d606d6394e393214d /lib
parent9a22ae11c67c530b840b82595ee7bb291661b86b (diff)
downloadspack-a11da7bdb9d75ba43a40172423efe45368cc4664.tar.gz
spack-a11da7bdb9d75ba43a40172423efe45368cc4664.tar.bz2
spack-a11da7bdb9d75ba43a40172423efe45368cc4664.tar.xz
spack-a11da7bdb9d75ba43a40172423efe45368cc4664.zip
cmd/dependents.py: remove unused loop over all packages (#45166)
Diffstat (limited to 'lib')
-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():