Skip to content

Commit a599cde

Browse files
authored
Merge pull request #2427 from joto/remove-split
Remove special case in expire code that doesn't work
2 parents 4bc20ad + 985b652 commit a599cde

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/expire-tiles.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,6 @@ int expire_tiles_t::from_bbox(geom::box_t const &box,
240240
{
241241
double const width = box.width();
242242
double const height = box.height();
243-
if (width > tile_t::HALF_EARTH_CIRCUMFERENCE + 1) {
244-
/* Over half the planet's width within the bounding box - assume the
245-
box crosses the international date line and split it into two boxes */
246-
int ret = from_bbox({-tile_t::HALF_EARTH_CIRCUMFERENCE, box.min_y(),
247-
box.min_x(), box.max_y()},
248-
expire_config);
249-
ret += from_bbox({box.max_x(), box.min_y(),
250-
tile_t::HALF_EARTH_CIRCUMFERENCE, box.max_y()},
251-
expire_config);
252-
return ret;
253-
}
254243

255244
if (expire_config.mode == expire_mode::hybrid &&
256245
(width > expire_config.full_area_limit ||

0 commit comments

Comments
 (0)