From d6d5cdbfbc81503b24b8bb6e5540037ded6a5e00 Mon Sep 17 00:00:00 2001 From: Raqueebuddin Aziz Date: Fri, 1 Dec 2023 06:59:16 +0530 Subject: [PATCH] remove unused function: apply_wildcard_syntax --- wildcard.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/wildcard.py b/wildcard.py index a99bb0a..3521e30 100644 --- a/wildcard.py +++ b/wildcard.py @@ -15,20 +15,6 @@ files = list( ) -def apply_wildcard_syntax(parts: list[str]) -> list[str]: - output: list[str] = [] - if len(parts) == 0: - return [] - if len(parts) == 1: - return [parts[0], "*"] - if len(parts) == 2: - return [f"{parts[0]}/{parts[1]}", f"{parts[0]}/*", "*/*"] - else: - for part in apply_wildcard_syntax(parts[1:]): - output.append(f"{parts[0]}/{part}") - return output - - def get_items_for_wildcard_path(glob: str): return list( wildcards_directory.glob(glob)