aboutsummaryrefslogtreecommitdiff
path: root/planetwars-matchrunner/src
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-09-23 21:42:24 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-09-23 21:42:24 +0200
commit332b3e4a13e2cc993dcb694e62451820d5038b59 (patch)
tree4895d289be50bc0bf153e1a708a062d97fed810a /planetwars-matchrunner/src
parenta1d81ac774c0ae52f155cd764fd74fd1ba928a5f (diff)
downloadplanetwars.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.rs18
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),
- }
-}