Remove unused code

This commit is contained in:
Raffson 2024-02-09 20:13:12 +01:00
parent f4987e05e4
commit 7c05e94619
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -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))