From 5d22a672b40de9ddf66f055c543313e8ed1072e7 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 29 Jun 2021 14:08:48 +0200 Subject: [PATCH] format/v1: remove now unused get_ids function This was only used in a test utility method. Its use was replaced and thus it is now longer needed. --- osbuild/formats/v1.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/osbuild/formats/v1.py b/osbuild/formats/v1.py index ed2c2539..75f0d5fa 100644 --- a/osbuild/formats/v1.py +++ b/osbuild/formats/v1.py @@ -7,7 +7,7 @@ the created tree into an artefact. The pipeline can have any number of nested build pipelines. A sources section is used to fetch resources. """ -from typing import Dict, Optional, Tuple +from typing import Dict from osbuild.meta import Index, ValidationResult from ..pipeline import Manifest, Pipeline, detect_host_runner @@ -192,12 +192,6 @@ def load(description: Dict, index: Index) -> Manifest: return manifest -def get_ids(manifest: Manifest) -> Tuple[Optional[str], Optional[str]]: - pipeline = manifest["tree"] - assembler = manifest.get("assembler") - return pipeline.id, assembler and assembler.id - - def output(manifest: Manifest, res: Dict) -> Dict: """Convert a result into the v1 format"""