]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop unused functions and variables 1434/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Apr 2023 20:00:19 +0000 (22:00 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 13 Apr 2023 20:00:19 +0000 (22:00 +0200)
mkosi/__init__.py

index 5cb3b84e8a64450379231de34ef4ae5eeaf5aeb2..37cc8012be320b16b95ae25750177935e553fc65 100644 (file)
@@ -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 = {}