[elbe-devel] [PATCH 03/17] elbepack: projectmanager: drop unused function open_current_project_file
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Fri Jul 19 13:30:54 CEST 2024
This function is never used, so delete it.
Also propagate the deletion to other components which are now unused.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/projectmanager.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index 82b03697a143..27580eaadb46 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -56,13 +56,6 @@ class InvalidState(ProjectManagerError):
pass
-class OpenProjectFile:
- def __init__(self, pfd, mode='r'):
- self.path = path.join(pfd.builddir, pfd.name)
- self.mime_type = pfd.mime_type
- self.fobj = open(self.path, mode)
-
-
class ProjectManager:
def __init__(self, basepath):
@@ -165,14 +158,6 @@ class ProjectManager:
self.db.del_project(builddir)
- def open_current_project_file(self, userid, filename, mode='r'):
- with self.lock:
- builddir = self._get_current_project(
- userid, allow_busy=False).builddir
-
- pfd = self.db.get_project_file(builddir, filename)
- return OpenProjectFile(pfd, mode)
-
def set_current_project_private_data(self, userid, private_data):
with self.lock:
ep = self._get_current_project(userid)
--
2.45.2
More information about the elbe-devel
mailing list