summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-01-17 16:56:21 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-01-17 16:56:21 +0100
commit318163f26d29412bb1389ce28c6d5633c770ca78 (patch)
tree4bc5810305b1ccdec701a9d305991220ac97d260 /src
parentc59f62274dcec243048ff5335b7955f195a561a0 (diff)
downloadqtlocation-mapboxgl-318163f26d29412bb1389ce28c6d5633c770ca78.tar.gz
remove unused code
Diffstat (limited to 'src')
-rw-r--r--src/map/tile.cpp23
1 files changed, 0 insertions, 23 deletions
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);