From bc6dff02e70bd1f5d728b3c254f050986528f21d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 23 Mar 2023 20:12:24 +0100 Subject: src: remove dead code --- src/entity.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/entity.cpp b/src/entity.cpp index 4ecd950e..10dd0ca6 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -198,7 +198,6 @@ bool entity::move_to(size_t& i, Vector2i delta, rotation new_r) c->remove_entity(i); auto& es = c2._entities; auto it = std::lower_bound(es.cbegin(), es.cend(), e_, entity_id_lessp); - auto ret = (size_t)std::distance(es.cbegin(), it); const_cast(coord) = coord_; set_bbox_(offset_, bb_offset, bb_size, pass); const_cast(r) = new_r; -- cgit v1.2.3