[elbe-devel] [PATCH 04/17] elbepack: projectmanager: drop unused private_data functions

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jul 19 13:30:55 CEST 2024


These functions are never used, so delete them.
Also propagate the deletion to other components which are now unused.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/elbeproject.py    |  3 ---
 elbepack/projectmanager.py | 12 ------------
 2 files changed, 15 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index e126098beb42..cba6e9cfa1ea 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -121,7 +121,6 @@ class ElbeProject:
             skip_validate=False,
             url_validation=ValidationMode.CHECK_ALL,
             rpcaptcache_notifier=None,
-            private_data=None,
             postbuild_file=None,
             presh_file=None,
             postsh_file=None,
@@ -143,8 +142,6 @@ class ElbeProject:
         self.postsh_file = postsh_file
         self.savesh_file = savesh_file
 
-        self.private_data = private_data
-
         # Apt-Cache will be created on demand with the specified notifier by
         # the get_rpcaptcache method
         self._rpcaptcache = None
diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index 27580eaadb46..f43acbc0907d 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -158,18 +158,6 @@ class ProjectManager:
 
         self.db.del_project(builddir)
 
-    def set_current_project_private_data(self, userid, private_data):
-        with self.lock:
-            ep = self._get_current_project(userid)
-            ep.private_data = private_data
-
-    def get_current_project_private_data(self, userid):
-        private_data = None
-        with self.lock:
-            ep = self._get_current_project(userid)
-            private_data = ep.private_data
-        return private_data
-
     def set_current_project_xml(self, userid, xml_file):
         with self.lock:
             ep = self._get_current_project(userid, allow_busy=False)

-- 
2.45.2



More information about the elbe-devel mailing list