From a5625d19ff81d98303c94cee4519343a2c3fc3cb Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 12 Feb 2024 01:52:00 +0100 Subject: refactor: Remove unused arg (#796) `bypass_checks` was never used for `launch_northstar_steam` --- src-tauri/src/northstar/mod.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs index 9191c595..9837ece4 100644 --- a/src-tauri/src/northstar/mod.rs +++ b/src-tauri/src/northstar/mod.rs @@ -157,7 +157,7 @@ pub fn launch_northstar( let launch_via_steam = launch_via_steam.unwrap_or(false); if launch_via_steam { - return launch_northstar_steam(game_install, bypass_checks); + return launch_northstar_steam(game_install); } let host_os = get_host_os(); @@ -172,7 +172,7 @@ pub fn launch_northstar( )); } - return launch_northstar_steam(game_install, bypass_checks); + return launch_northstar_steam(game_install); } let bypass_checks = bypass_checks.unwrap_or(false); @@ -224,10 +224,7 @@ pub fn launch_northstar( } /// Prepare Northstar and Launch through Steam using the Browser Protocol -pub fn launch_northstar_steam( - game_install: GameInstall, - _bypass_checks: Option, -) -> Result { +pub fn launch_northstar_steam(game_install: GameInstall) -> Result { if !matches!(game_install.install_type, InstallType::STEAM) { return Err("Titanfall2 was not installed via Steam".to_string()); } -- cgit v1.2.3