From f682433b64e57c3228bbea7b5d4fb3f014d1845f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 13 Apr 2023 22:00:19 +0200 Subject: [PATCH] Drop unused functions and variables --- mkosi/__init__.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 5cb3b84e8..37cc8012b 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1005,24 +1005,6 @@ def find_image_version(args: argparse.Namespace) -> None: pass -DISABLED = Path('DISABLED') # A placeholder value to suppress autodetection. - # This is used as a singleton, i.e. should be compared with - # 'is' in other parts of the code. - -def script_path(value: Optional[str]) -> Optional[Path]: - if value is None: - return None - if value == '': - return DISABLED - return Path(value) - - -def normalize_script(path: Optional[Path]) -> Optional[Path]: - if not path or path is DISABLED: - return None - return Path(path).absolute() - - def load_credentials(args: argparse.Namespace) -> dict[str, str]: creds = {} -- 2.47.2