diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-01-17 16:56:21 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-01-17 16:56:21 +0100 |
commit | 318163f26d29412bb1389ce28c6d5633c770ca78 (patch) | |
tree | 4bc5810305b1ccdec701a9d305991220ac97d260 /src | |
parent | c59f62274dcec243048ff5335b7955f195a561a0 (diff) | |
download | qtlocation-mapboxgl-318163f26d29412bb1389ce28c6d5633c770ca78.tar.gz |
remove unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/map/tile.cpp | 23 |
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); |