1
0
Fork 0

generate: container: Remove command_join()

It is not used anywhere, so it can be safely removed.

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-07-22 16:20:51 +02:00
parent 6963fdea2a
commit ca9d914449
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -44,15 +44,6 @@ def maybe(json: dict, key: str) -> str | dict | list | bool | None:
return None return None
def command_join(items: list | None) -> str:
"""Like join(), but call command()."""
joined = ""
if items is not None:
for item in items:
joined += " " + item.command()
return joined
def trim(s: str) -> str: def trim(s: str) -> str:
"""Remove sequential whitespace.""" """Remove sequential whitespace."""
s = s.replace("\t ", "\t") s = s.replace("\t ", "\t")