diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-09-23 21:42:24 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-09-23 21:42:24 +0200 |
commit | 332b3e4a13e2cc993dcb694e62451820d5038b59 (patch) | |
tree | 4895d289be50bc0bf153e1a708a062d97fed810a /planetwars-matchrunner/src | |
parent | a1d81ac774c0ae52f155cd764fd74fd1ba928a5f (diff) | |
download | planetwars.dev-332b3e4a13e2cc993dcb694e62451820d5038b59.tar.xz planetwars.dev-332b3e4a13e2cc993dcb694e62451820d5038b59.zip |
remove unused function and file
Diffstat (limited to 'planetwars-matchrunner/src')
-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), - } -} |