diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-04 21:14:53 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:24:48 +0200 |
commit | fbc36568af5d9142a45bee57323b8a5457a114f8 (patch) | |
tree | 8d838f0ad42823e4816a5ad4cdd66d03434ba6ad /src/chunk.cpp | |
parent | 78ca913d82a0c30e978b69a8ed2685d92ae9eb36 (diff) |
src: remove the tile_iterator class
This is too crufty to bother with.
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r-- | src/chunk.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp index 9f6fe993..c6967740 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -1,7 +1,6 @@ #include "chunk.hpp" #include "object.hpp" #include "world.hpp" -#include "tile-iterator.hpp" #include "log.hpp" #include "RTree.h" #include <algorithm> @@ -69,13 +68,6 @@ Optional<tile_ref> chunk::at_offset_(local_coords pos, Vector2i off) tile_ref chunk::at_offset(tile_ref r, Vector2i off) { return at_offset(local_coords{r.index()}, off); } Optional<tile_ref> chunk::at_offset_(tile_ref r, Vector2i off) { return at_offset_(local_coords{r.index()}, off); } -auto chunk::begin() noexcept -> iterator { return iterator { *this, 0 }; } -auto chunk::end() noexcept -> iterator { return iterator { *this, TILE_COUNT }; } -auto chunk::cbegin() const noexcept -> const_iterator { return const_iterator { *this, 0 }; } -auto chunk::cend() const noexcept -> const_iterator { return const_iterator { *this, TILE_COUNT }; } -auto chunk::begin() const noexcept -> const_iterator { return cbegin(); } -auto chunk::end() const noexcept -> const_iterator { return cend(); } - void chunk::mark_ground_modified() noexcept { if (!_ground_modified && is_log_verbose()) [[unlikely]] |