From: Daan De Meyer Date: Thu, 13 Apr 2023 20:00:19 +0000 (+0200) Subject: Drop unused functions and variables X-Git-Tag: v15~257^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1434%2Fhead;p=thirdparty%2Fmkosi.git Drop unused functions and variables --- 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 = {}