[elbe-devel] [PATCH 10/17] elbepack: projectmanager: drop unused function set_current_project_version

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jul 19 13:31:01 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 | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index fdb1fc7593c5..1cd5105e56b9 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -177,13 +177,6 @@ class ProjectManager:
             # Make db reload the xml file
             self.db.set_xml(ep.builddir, None)
 
-    def set_current_project_version(self, userid, new_version):
-        with self.lock:
-            ep = self._get_current_project(userid, allow_busy=False)
-
-            self.db.set_project_version(ep.builddir, new_version)
-            ep.xml.node('/project/version').set_text(new_version)
-
     def list_current_project_versions(self, userid):
         with self.lock:
             ep = self._get_current_project(userid)

-- 
2.45.2



More information about the elbe-devel mailing list