Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2015-11-05 18:58:31 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:28:00 +0300
commit44685586b3ae801a96e4a147df9d2b47b8772fba (patch)
tree0c4e3c82c8022292c23a8aaf1b50133e409a7471 /indexer/feature_covering.cpp
parentf73a372e9b9022397ffb2092fabb8851e12e3b42 (diff)
[drape] Removed dummy assert.
Diffstat (limited to 'indexer/feature_covering.cpp')
-rw-r--r--indexer/feature_covering.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/indexer/feature_covering.cpp b/indexer/feature_covering.cpp
index d17582210d..4503e1de88 100644
--- a/indexer/feature_covering.cpp
+++ b/indexer/feature_covering.cpp
@@ -208,22 +208,11 @@ RectId GetRectIdAsIs(m2::RectD const & r)
double const eps = MercatorBounds::GetCellID2PointAbsEpsilon();
using TConverter = CellIdConverter<MercatorBounds, RectId>;
- RectId const id = TConverter::Cover2PointsWithCell(
+ return TConverter::Cover2PointsWithCell(
MercatorBounds::ClampX(r.minX() + eps),
MercatorBounds::ClampY(r.minY() + eps),
MercatorBounds::ClampX(r.maxX() - eps),
MercatorBounds::ClampY(r.maxY() - eps));
-
- // Calling this function makes sence only for rects that are equal with index cells.
- // Check it here ...
-#ifdef DEBUG
- double minX, minY, maxX, maxY;
- TConverter::GetCellBounds(id, minX, minY, maxX, maxY);
- m2::RectD dbgR(minX, minY, maxX, maxY);
- ASSERT(m2::IsEqual(dbgR, r, eps, eps), (r, dbgR));
-#endif
-
- return id;
}
int GetCodingDepth(int scale)