Skip to content
Permalink
Browse files

Remove impossible to reach code

  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 7973c91 commit 773d660d24f67bd5abcf6bc676e11a277ffb1e95
Showing with 0 additions and 19 deletions.
  1. +0 −19 src/core/geometry/qgscircularstring.cpp
@@ -119,20 +119,8 @@ QgsRectangle QgsCircularString::segmentBoundingBox( const QgsPoint &pt1, const Q
QgsGeometryUtils::circleCenterRadius( pt1, pt2, pt3, radius, centerX, centerY );

double p1Angle = QgsGeometryUtils::ccwAngle( pt1.y() - centerY, pt1.x() - centerX );
if ( p1Angle > 360 )
{
p1Angle -= 360;
}
double p2Angle = QgsGeometryUtils::ccwAngle( pt2.y() - centerY, pt2.x() - centerX );
if ( p2Angle > 360 )
{
p2Angle -= 360;
}
double p3Angle = QgsGeometryUtils::ccwAngle( pt3.y() - centerY, pt3.x() - centerX );
if ( p3Angle > 360 )
{
p3Angle -= 360;
}

//start point, end point and compass points in between can be on bounding box
QgsRectangle bbox( pt1.x(), pt1.y(), pt1.x(), pt1.y() );
@@ -557,13 +545,6 @@ void QgsCircularString::transform( const QTransform &t )
}
}

#if 0
void QgsCircularString::clip( const QgsRectangle &rect )
{
//todo...
}
#endif

void QgsCircularString::addToPainterPath( QPainterPath &path ) const
{
int nPoints = numPoints();

0 comments on commit 773d660

Please sign in to comment.
You can’t perform that action at this time.