diff --git a/kiwixbuild/_global.py b/kiwixbuild/_global.py index 9e37bd1..971555c 100644 --- a/kiwixbuild/_global.py +++ b/kiwixbuild/_global.py @@ -38,23 +38,3 @@ def get_target_step(key, default_context=None): def target_steps(): return _target_steps - - -def backend(): - global _backend - if _backend is not None: - return _backend - - _platform = platform.system() - if _platform == "Windows": - print( - "ERROR: kiwix-build is not intented to run on Windows platform.\n" - "There is no backend for Windows, so we can't launch any commands." - ) - sys.exit(0) - if _platform == "Linux": - _platform, _, _ = platform.linux_distribution() - _platform = _platform.lower() - _backend = backends.Linux() - - return _backend diff --git a/kiwixbuild/builder.py b/kiwixbuild/builder.py index a59461d..7909cd1 100644 --- a/kiwixbuild/builder.py +++ b/kiwixbuild/builder.py @@ -12,7 +12,6 @@ from ._global import ( add_target_step, get_target_step, target_steps, - backend, ) from . import _global diff --git a/kiwixbuild/flatpak_builder.py b/kiwixbuild/flatpak_builder.py index 6cc6de7..cb07f62 100644 --- a/kiwixbuild/flatpak_builder.py +++ b/kiwixbuild/flatpak_builder.py @@ -13,7 +13,6 @@ from ._global import ( add_target_step, get_target_step, target_steps, - backend, ) from . import _global from .dependencies.base import (