]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Remove unused function Builders.get_all_arches()
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 8 Oct 2017 11:58:11 +0000 (12:58 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 8 Oct 2017 11:58:11 +0000 (12:58 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builders.py

index ee408d0a25f6af04f3b234f179d6c407c102761b..de6c9245fbcfb4b13d4708119a4c998fad2e9e17 100644 (file)
@@ -58,20 +58,6 @@ class Builders(base.Object):
                if builder:
                        return Builder(self.pakfire, builder.id, builder)
 
-       def get_all_arches(self):
-               arches = set()
-
-               for result in self.db.query("SELECT DISTINCT arches FROM builders"):
-                       if not result.arches:
-                               continue
-
-                       _arches = result.arches.split()
-
-                       for arch in _arches:
-                               arches.add(arch)
-
-               return sorted(arches)
-
        def get_load(self):
                res1 = self.db.get("SELECT SUM(max_jobs) AS max_jobs FROM builders \
                        WHERE status = 'enabled'")