diff --git a/indexer/geometry_coding.cpp b/indexer/geometry_coding.cpp index f295b7d952..f5dac67a90 100644 --- a/indexer/geometry_coding.cpp +++ b/indexer/geometry_coding.cpp @@ -74,24 +74,6 @@ m2::PointU PredictPointInPolyline(m2::PointU const & maxPoint, complex const c0 = (c01 + c02) * complex(0.5, 0.0); */ - /* - complex const c1(p1.x, p1.y); - complex const c2(p2.x, p2.y); - complex const c3(p3.x, p3.y); - complex d = (c1 - c2) / (c2 - c3); - d /= abs(d); - complex const c0 = c1 + (c1 - c2) * d * complex(0.5, 0.0); - */ - - /* - // In complex numbers: - // Ci = Ci-1 + (Ci-1 - Ci-2) * (Ci-1 - Ci-2) / (Ci-2 - Ci-3) - complex const c1(p1.x, p1.y); - complex const c2(p2.x, p2.y); - complex const c3(p3.x, p3.y); - complex const c0 = c1 + (c1 - c2) * (c1 - c2) / (c2 - c3); - */ - return ClampPoint(maxPoint, m2::PointD(c0.real(), c0.imag())); }