From 332b3e4a13e2cc993dcb694e62451820d5038b59 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 23 Sep 2022 21:42:24 +0200 Subject: remove unused function and file --- planetwars-matchrunner/src/pw_match.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'planetwars-matchrunner/src') diff --git a/planetwars-matchrunner/src/pw_match.rs b/planetwars-matchrunner/src/pw_match.rs index c5650f7..737aa00 100644 --- a/planetwars-matchrunner/src/pw_match.rs +++ b/planetwars-matchrunner/src/pw_match.rs @@ -162,21 +162,3 @@ pub enum PlayerAction { }, Commands(Vec), } - -fn action_errors(action: PlayerAction) -> Option { - match action { - PlayerAction::Commands(commands) => { - let failed = commands - .into_iter() - .filter(|cmd| cmd.error.is_some()) - .collect::>(); - - if failed.is_empty() { - None - } else { - Some(PlayerAction::Commands(failed)) - } - } - e => Some(e), - } -} -- cgit v1.2.3