[elbe-devel] [PATCH 14/17] elbepack: projectmanager: drop unused function set_current_project_version_description

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jul 19 13:31:05 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/db.py             | 12 ------------
 elbepack/projectmanager.py |  6 ------
 2 files changed, 18 deletions(-)

diff --git a/elbepack/db.py b/elbepack/db.py
index e19fbc2c1609..0ea698046fd4 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -512,18 +512,6 @@ class ElbeDB:
                                  'application/xml',
                                  f'source.xml for version {version}')
 
-    def set_version_description(self, builddir, version, description):
-        with session_scope(self.session) as s:
-            try:
-                v = s.query(ProjectVersion).\
-                    filter(ProjectVersion.builddir == builddir).\
-                    filter(ProjectVersion.version == version).one()
-            except NoResultFound:
-                raise ElbeDBError(
-                    f'no such project version: {builddir} (version {version})')
-
-            v.description = description
-
     def checkout_version_xml(self, builddir, version):
         with session_scope(self.session) as s:
             try:
diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index e5dff82a87a3..b85fe000d5bd 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -175,12 +175,6 @@ class ProjectManager:
             # Make db reload the xml file
             self.db.set_xml(ep.builddir, None)
 
-    def set_current_project_version_description(self, userid, version,
-                                                description):
-        with self.lock:
-            ep = self._get_current_project(userid)
-            self.db.set_version_description(ep.builddir, version, description)
-
     def del_current_project_version(self, userid, version):
         with self.lock:
             ep = self._get_current_project(userid, allow_busy=False)

-- 
2.45.2



More information about the elbe-devel mailing list