Skip to content

Commit

Permalink
Remove impossible to reach code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 7973c91 commit 773d660
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/core/geometry/qgscircularstring.cpp
Expand Up @@ -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() );
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 773d660

Please sign in to comment.