From 383e9320ae94c42ff820cb6b40eeb07dbce21fb8 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 19 May 2022 20:04:14 +0200 Subject: [PATCH] objectstore: remove unused method from Object This function was used for the treesum calculations which is not done anymore. Remove it. --- osbuild/objectstore.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/osbuild/objectstore.py b/osbuild/objectstore.py index f4deca3d..2b4a5bea 100644 --- a/osbuild/objectstore.py +++ b/osbuild/objectstore.py @@ -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: