From 6453bca2568666c660f0aa7016593ee7e424279d Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Fri, 15 Dec 2023 13:56:23 +0100 Subject: [PATCH] Remove unused write_releases method This method is unused now that all scripts are using the Product class. --- src/common/endoflife.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/common/endoflife.py b/src/common/endoflife.py index b5debe6b..7cd70965 100644 --- a/src/common/endoflife.py +++ b/src/common/endoflife.py @@ -144,11 +144,3 @@ def list_products(method, products_filter=None) -> dict[str, list[dict]]: products_with_method[product_name] = configs return products_with_method - - -def write_releases(product, releases, pathname="releases") -> None: - with open(f"{pathname}/{product}.json", "w") as f: - f.write(json.dumps(dict( - # sort by date then version (desc) - sorted(releases.items(), key=lambda x: (x[1], x[0]), reverse=True) - ), indent=2))