diff mbox series

[3/3] sstate-cache-management: drop unused functions

Message ID 20261005065322.30522-6-alex.kiernan@gmail.com
State New
Headers show
Series [1/3] sstate-cache-management: find work-shared stamps too | expand

Commit Message

Alex Kiernan Oct. 5, 2026, 6:53 a.m. UTC
find_archs() and find_tasks() were implemented when converting from
sstate-cache-management.sh; neither have ever been used, so drop them.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
 scripts/sstate-cache-management.py | 44 ------------------------------
 1 file changed, 44 deletions(-)
diff mbox series

Patch

diff --git a/scripts/sstate-cache-management.py b/scripts/sstate-cache-management.py
index c361c3d5a07f..e77f0b0efb60 100755
--- a/scripts/sstate-cache-management.py
+++ b/scripts/sstate-cache-management.py
@@ -63,50 +63,6 @@  class SstateEntry:
         return self.match.group(name)
 
 
-# this is what's in the original script; as far as I can tell, it's an
-# implementation artefact which we don't need?
-def find_archs():
-    # all_archs
-    builder_arch = os.uname().machine
-
-    # FIXME
-    layer_paths = [Path("../..")]
-
-    tune_archs = set()
-    re_tune = re.compile(r'AVAILTUNES .*=.*"(.*)"')
-    for path in layer_paths:
-        for tunefile in [
-            p for p in path.glob("meta*/conf/machine/include/**/*") if p.is_file()
-        ]:
-            with open(tunefile) as f:
-                for line in f:
-                    m = re_tune.match(line)
-                    if m:
-                        tune_archs.update(m.group(1).split())
-
-    # all_machines
-    machine_archs = set()
-    for path in layer_paths:
-        for machine_file in path.glob("meta*/conf/machine/*.conf"):
-            machine_archs.add(machine_file.parts[-1][:-5])
-
-    extra_archs = set()
-    all_archs = (
-        set(
-            arch.replace("-", "_")
-            for arch in machine_archs | tune_archs | set(["allarch", builder_arch])
-        )
-        | extra_archs
-    )
-
-    print(all_archs)
-
-
-# again, not needed?
-def find_tasks():
-    print(set([p.bb_task for p in paths]))
-
-
 def collect_sstate_paths(args):
     def scandir(path, paths):
         # Assume everything is a directory; by not checking we avoid needing an