[elbe-devel] [PATCH 02/10] elbepack: asyncworker: drop unnecessary constructors

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Apr 22 18:37:23 CEST 2024


The explicit constructors do the same as the implicit ones.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/asyncworker.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/elbepack/asyncworker.py b/elbepack/asyncworker.py
index 4f0e46d4285f..810137c86008 100644
--- a/elbepack/asyncworker.py
+++ b/elbepack/asyncworker.py
@@ -37,8 +37,6 @@ class AsyncWorkerJob:
 
 
 class BuildSysrootJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         db.set_busy(self.project.builddir,
@@ -67,8 +65,6 @@ class BuildSysrootJob(AsyncWorkerJob):
 
 
 class BuildSDKJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         db.set_busy(self.project.builddir,
@@ -127,8 +123,6 @@ class BuildCDROMsJob(AsyncWorkerJob):
 
 
 class BuildChrootTarJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         db.set_busy(self.project.builddir,
@@ -266,8 +260,6 @@ class CreatePbuilderJob(AsyncWorkerJob):
 
 
 class UpdatePbuilderJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         db.set_busy(self.project.builddir,
@@ -295,8 +287,6 @@ class UpdatePbuilderJob(AsyncWorkerJob):
 
 
 class APTUpdateJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         db.set_busy(self.project.builddir,
@@ -323,8 +313,6 @@ class APTUpdateJob(AsyncWorkerJob):
 
 
 class APTUpdUpgrJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         db.set_busy(self.project.builddir, ['build_done', 'has_changes'])
@@ -352,8 +340,6 @@ class APTUpdUpgrJob(AsyncWorkerJob):
 
 
 class APTCommitJob(AsyncWorkerJob):
-    def __init__(self, project):
-        AsyncWorkerJob.__init__(self, project)
 
     def enqueue(self, queue, db):
         old_status = db.set_busy(self.project.builddir,

-- 
2.44.0



More information about the elbe-devel mailing list