remove vestigial code
This commit is contained in:
parent
9df9bfa4b7
commit
d3000d540e
@ -488,9 +488,6 @@ def _next_root(self, specs):
|
||||
return os.path.join(root_dir, "._%s" % root_name, content_hash)
|
||||
|
||||
def content_hash(self, specs):
|
||||
print("CONTENT_HASH")
|
||||
print(" ", specs)
|
||||
print(" ", self.to_dict())
|
||||
d = syaml.syaml_dict(
|
||||
[
|
||||
("descriptor", self.to_dict()),
|
||||
@ -498,7 +495,6 @@ def content_hash(self, specs):
|
||||
]
|
||||
)
|
||||
contents = sjson.dump(d)
|
||||
print(" ", spack.util.hash.b32_hash(contents))
|
||||
return spack.util.hash.b32_hash(contents)
|
||||
|
||||
def get_projection_for_spec(self, spec):
|
||||
|
@ -772,22 +772,6 @@ def get_relative_projection_for_spec(self, spec):
|
||||
p = spack.projections.get_projection(self.projections, spec)
|
||||
return spec.format(p) if p else ""
|
||||
|
||||
def get_all_specs(self):
|
||||
md_dirs = []
|
||||
for root, dirs, files in os.walk(self._root):
|
||||
if spack.store.layout.metadata_dir in dirs:
|
||||
md_dirs.append(os.path.join(root, spack.store.layout.metadata_dir))
|
||||
|
||||
specs = []
|
||||
for md_dir in md_dirs:
|
||||
if os.path.exists(md_dir):
|
||||
for name_dir in os.listdir(md_dir):
|
||||
filename = os.path.join(md_dir, name_dir, spack.store.layout.spec_file_name)
|
||||
spec = get_spec_from_file(filename)
|
||||
if spec:
|
||||
specs.append(spec)
|
||||
return specs
|
||||
|
||||
def get_projection_for_spec(self, spec):
|
||||
"""
|
||||
Return the projection for a spec in this view.
|
||||
|
Loading…
Reference in New Issue
Block a user