From 7c05e9461988b3aa41675681fffcd88a7d198f18 Mon Sep 17 00:00:00 2001 From: Raffson Date: Fri, 9 Feb 2024 20:13:12 +0100 Subject: [PATCH] Remove unused code --- qt_ui/main.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/qt_ui/main.py b/qt_ui/main.py index f8d8c91d..a224b630 100644 --- a/qt_ui/main.py +++ b/qt_ui/main.py @@ -61,18 +61,6 @@ def inject_custom_payloads(user_path: Path) -> None: PayloadDirectories.set_preferred(user_path / "MissionEditor" / "UnitPayloads") -def inject_mod_payloads(mod_path: Path) -> None: - if mod_path.exists(): - payloads = mod_path - else: - raise RuntimeError( - f"Could not find mod payloads at {mod_path}." - f"Aircraft will have no payloads." - ) - # We configure these as preferred so the mod's loadouts override the stock ones. - PayloadDirectories.set_preferred(payloads) - - def on_game_load(game: Optional[Game]) -> None: EventStream.drain() EventStream.put_nowait(GameUpdateEvents().game_loaded(game))