Remove unused context manager (#38897)

This commit is contained in:
Harmen Stoppels
2023-07-14 18:41:30 +02:00
committed by GitHub
parent de719e9a4b
commit ac5976d17d

View File

@@ -11,7 +11,6 @@
import base64
import collections
import contextlib
import copy
import functools
import glob
@@ -1785,13 +1784,6 @@ def _resource_stage(self, resource):
resource_stage_folder = "-".join(pieces)
return resource_stage_folder
@contextlib.contextmanager
def _stage_and_write_lock(self):
"""Prefix lock nested in a stage."""
with self.stage:
with spack.store.db.prefix_write_lock(self.spec):
yield
def do_install(self, **kwargs):
"""Called by commands to install a package and or its dependencies.