diff options
Diffstat (limited to 'planetwars-matchrunner/src/pw_match.rs')
-rw-r--r-- | planetwars-matchrunner/src/pw_match.rs | 18 |
1 files changed, 0 insertions, 18 deletions
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<PlayerCommand>), } - -fn action_errors(action: PlayerAction) -> Option<PlayerAction> { - match action { - PlayerAction::Commands(commands) => { - let failed = commands - .into_iter() - .filter(|cmd| cmd.error.is_some()) - .collect::<Vec<_>>(); - - if failed.is_empty() { - None - } else { - Some(PlayerAction::Commands(failed)) - } - } - e => Some(e), - } -} |