From 95c4368df6609e9cee22e3837717f38082f0ea12 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 25 Jul 2023 20:41:05 +0100 Subject: [PATCH] remove unused resolution --- .../src/game/simulation/entity.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs index f2bd7987..95a1474b 100644 --- a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs +++ b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs @@ -130,9 +130,6 @@ impl EntityMap { if surface == MapElement::Wall { let wall_resolution = resolve_wall_move(&entity.entity); match wall_resolution { - WallResolution::Die => { - hero_has_died |= self.kill_entity(entity_key, &mut animations); - } WallResolution::StayPut => { animations.push(AnimationInstruction::FakeOutMove( entity_key, @@ -316,7 +313,6 @@ enum OverlapResolution { } enum WallResolution { - Die, StayPut, } @@ -340,7 +336,7 @@ fn resolve_overlap(me: &Entity, other: &Entity) -> OverlapResolution { } } -fn resolve_wall_move(entity: &EntityType) -> WallResolution { +fn resolve_wall_move(_entity: &EntityType) -> WallResolution { WallResolution::StayPut }