summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-23 20:12:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-23 20:50:35 +0100
commitbc6dff02e70bd1f5d728b3c254f050986528f21d (patch)
treee83e8e42ea5a2a9bd71d09977ca908e96f188927 /src
parent7294a2366b39a71d33ba0e4db90073508ed5ee7e (diff)
src: remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/entity.cpp1
1 files changed, 0 insertions, 1 deletions
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<global_coords&>(coord) = coord_;
set_bbox_(offset_, bb_offset, bb_size, pass);
const_cast<rotation&>(r) = new_r;