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.
This commit is contained in:
Christian Kellner 2021-06-29 14:08:48 +02:00 committed by Achilleas Koutsou
parent 427266c583
commit 5d22a672b4

View file

@ -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"""