diff --git a/src/ships/mod.rs b/src/ships/mod.rs index 85a35dd..cc5e492 100644 --- a/src/ships/mod.rs +++ b/src/ships/mod.rs @@ -9,7 +9,6 @@ pub mod player; pub enum Factions { PlayerFaction, EnemyFaction, - NeutralFaction, } impl Factions { @@ -18,17 +17,10 @@ impl Factions { Factions::PlayerFaction => match other { Factions::PlayerFaction => false, Factions::EnemyFaction => true, - Factions::NeutralFaction => false, }, Factions::EnemyFaction => match other { Factions::PlayerFaction => true, Factions::EnemyFaction => false, - Factions::NeutralFaction => false, - }, - Factions::NeutralFaction => match other { - Factions::EnemyFaction => false, - Factions::NeutralFaction => false, - Factions::PlayerFaction => false, }, } } diff --git a/src/velocity.rs b/src/velocity.rs index ae44d10..77e5324 100644 --- a/src/velocity.rs +++ b/src/velocity.rs @@ -24,19 +24,6 @@ pub struct Velocity { } impl Velocity { - pub fn new( - linear_speed: f32, - rotation_speed: f32, - max_linear_speed: f32, - max_rotation_speed: f32, - ) -> Velocity { - Velocity { - linear_speed, - rotation_speed, - max_linear_speed: max_linear_speed, - max_rotation_speed: max_rotation_speed, - } - } pub fn stopped(max_linear_speed: f32, max_rotation_speed: f32) -> Velocity { Velocity { linear_speed: 0.,