remove unused code

This commit is contained in:
2022-05-03 23:13:48 +02:00
parent bdb6e60e98
commit fb6e9e82b3
+1 -15
View File
@@ -199,26 +199,12 @@ impl Population {
x: pos.x + 1, x: pos.x + 1,
y: pos.y + 1, y: pos.y + 1,
}, },
); ); //Bottom Right
if infected { if infected {
people_to_infect.push(Point { x: pos.x, y: pos.y }); 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() { for infected_position in people_to_infect.iter() {
// println!("To infect: {:?}", infected_position); // println!("To infect: {:?}", infected_position);