From fb6e9e82b3732d77a1ae8fff74ebff83e0c5ae76 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Tue, 3 May 2022 23:13:48 +0200 Subject: [PATCH] remove unused code --- src/population.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/population.rs b/src/population.rs index f746fa4..39d9964 100644 --- a/src/population.rs +++ b/src/population.rs @@ -199,26 +199,12 @@ impl Population { x: pos.x + 1, y: pos.y + 1, }, - ); + ); //Bottom Right if infected { people_to_infect.push(Point { x: pos.x, y: pos.y }); } } } - // ); //Bottom Right - // for poss_infected_pos in possible_infections.iter() { - // //possible_infections.iter().map(|poss_infected_pos|{ - // let inf_idx = - // human_idx(poss_infected_pos.x, poss_infected_pos.y, self.width); - // if self.humans[inf_idx].present_state == State::Normal { - // if roll(self.plague.infection_rate) { - // people_to_infect.push(Point { - // x: poss_infected_pos.x, - // y: poss_infected_pos.y, - // }); - // } - // } - // } for infected_position in people_to_infect.iter() { // println!("To infect: {:?}", infected_position);