summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llmr/map/tile.hpp3
-rw-r--r--src/map/tile.cpp23
2 files changed, 0 insertions, 26 deletions
diff --git a/include/llmr/map/tile.hpp b/include/llmr/map/tile.hpp
index 24eb9657e8..63ea1e5ef5 100644
--- a/include/llmr/map/tile.hpp
+++ b/include/llmr/map/tile.hpp
@@ -40,9 +40,6 @@ public:
static tile_id parent(const tile_id& id, int32_t z);
static std::forward_list<tile_id> children(const tile_id& id, int32_t z);
- // static int64_t toID(int32_t z, int32_t x, int32_t y, int32_t w = 0);
- // static vec4<int32_t> fromID(int64_t id);
-
public:
const tile_id id;
state state;
diff --git a/src/map/tile.cpp b/src/map/tile.cpp
index 83ef1d69b8..292b045283 100644
--- a/src/map/tile.cpp
+++ b/src/map/tile.cpp
@@ -13,29 +13,6 @@
using namespace llmr;
-
-// int64_t tile::toID(int32_t z, int32_t x, int32_t y, int32_t w) {
-// w *= 2;
-// if (w < 0) w = w * -1 -1;
-// int32_t dim = 1 << z;
-// return ((dim * dim * w + dim * y + x) * 32) + z;
-// }
-
-// vec4<int32_t> tile::fromID(int64_t id) {
-// vec4<int32_t> coord;
-// coord.z = id % 32;
-// int32_t dim = 1 << coord.z;
-// int64_t xy = ((id - coord.z) / 32);
-// coord.x = xy % dim;
-// coord.y = ((xy - coord.x) / dim) % dim;
-// coord.w = floor(xy / (dim * dim));
-// if (coord.w % 2 != 0) coord.w = coord.w * -1 -1;
-// coord.w /= 2;
-
-// fprintf(stderr, "tile: %d/%d/%d/%d\n", coord.z, coord.x, coord.y, coord.w);
-// return coord;
-// };
-
tile_id tile::parent(const tile_id& id, int32_t z) {
assert(z < id.z);
tile_id pos(id);