objectstore: remove unused method from Object

This function was used for the treesum calculations which is not done
anymore. Remove it.
This commit is contained in:
Christian Kellner 2022-05-19 20:04:14 +02:00
parent e0db89284d
commit 383e9320ae

View file

@ -187,16 +187,6 @@ class Object:
if self._writer:
raise ValueError("Write operation is ongoing")
@contextlib.contextmanager
def _open(self):
"""Open the directory and return the file descriptor"""
with self.read() as path:
fd = os.open(path, os.O_DIRECTORY)
try:
yield fd
finally:
os.close(fd)
def tempdir(self, suffix=None):
workdir = self._workdir.name
if suffix: