From 619f44d657df7c37a98091b4446ce7e4004dda65 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 24 Nov 2026 01:48:48 +0100 Subject: [PATCH] refactor: drop the unused catalog line of readme --- scripts/sitegen/readme.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/scripts/sitegen/readme.py b/scripts/sitegen/readme.py index 4e36c78eb..ba901bc47 100644 --- a/scripts/sitegen/readme.py +++ b/scripts/sitegen/readme.py @@ -19,7 +19,6 @@ from core.paths import DB_FILE, REPO_ROOT from core.sizes import size_text from core import upstream from installer_build.module import installer_module -from model.composition import compute_composition, count_catalog_matched from model.guides import PACKAGE_COMMAND from sitegen.guidedata import install_command from model.largefiles import load_registered_paths @@ -178,26 +177,6 @@ def fetch_contributors() -> list[dict]: ] -_CATALOG_LABELS = {"redump": "Redump", "no-intro": "No-Intro", "tosec": "TOSEC"} - - -def _catalog_matched_line(db: dict) -> list[str]: - """Bullet line for files matched to dump-preservation catalogs.""" - matched = count_catalog_matched(db) - if not matched: - return [] - sources: set[str] = set() - for entry in db.get("files", {}).values(): - sources.update(entry.get("provenance") or ()) - system_files = compute_composition(db)["systems"]["files"] - labels = ", ".join(_CATALOG_LABELS.get(s, s) for s in sorted(sources)) - return [ - f"- **{matched:,} of {system_files:,} system files** matched to" - f" dump-preservation catalogs ({labels}). Arcade sets and engine data" - f" fall outside what those catalogs index" - ] - - # The badge row under the links: (alt text, image, link). A badge earns its # place by saying what the page does not: the Python floor is in the install # text, and GitHub cannot name the license of LICENSE, which opens on its scope.