From 55581b6e61aa0f3bdbcbe4e2a1b8d67a52031aa1 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 1 Aug 2019 17:28:25 +0300 Subject: [core] Remove unused CollisionBox::offset --- src/mbgl/text/collision_feature.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mbgl/text/collision_feature.cpp') diff --git a/src/mbgl/text/collision_feature.cpp b/src/mbgl/text/collision_feature.cpp index c708f834da..fbf259d1db 100644 --- a/src/mbgl/text/collision_feature.cpp +++ b/src/mbgl/text/collision_feature.cpp @@ -54,9 +54,9 @@ CollisionFeature::CollisionFeature(const GeometryCoordinates& line, const float yMin = std::min({tl.y, tr.y, bl.y, br.y}); const float yMax = std::max({tl.y, tr.y, bl.y, br.y}); - boxes.emplace_back(anchor.point, Point{ 0, 0 }, xMin, yMin, xMax, yMax); + boxes.emplace_back(anchor.point, xMin, yMin, xMax, yMax); } else { - boxes.emplace_back(anchor.point, Point{ 0, 0 }, x1, y1, x2, y2); + boxes.emplace_back(anchor.point, x1, y1, x2, y2); } } } @@ -155,7 +155,7 @@ void CollisionFeature::bboxifyLabel(const GeometryCoordinates& line, GeometryCoo 0 : (boxDistanceToAnchor - firstBoxOffset) * 0.8; - boxes.emplace_back(boxAnchor, boxAnchor - convertPoint(anchorPoint), -boxSize / 2, -boxSize / 2, boxSize / 2, boxSize / 2, paddedAnchorDistance, boxSize / 2); + boxes.emplace_back(boxAnchor, -boxSize / 2, -boxSize / 2, boxSize / 2, boxSize / 2, paddedAnchorDistance, boxSize / 2); } } -- cgit v1.2.1