Skip to content

Commit 773d660

Browse files
committedSep 19, 2017
Remove impossible to reach code
1 parent 7973c91 commit 773d660

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed
 

‎src/core/geometry/qgscircularstring.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,8 @@ QgsRectangle QgsCircularString::segmentBoundingBox( const QgsPoint &pt1, const Q
119119
QgsGeometryUtils::circleCenterRadius( pt1, pt2, pt3, radius, centerX, centerY );
120120

121121
double p1Angle = QgsGeometryUtils::ccwAngle( pt1.y() - centerY, pt1.x() - centerX );
122-
if ( p1Angle > 360 )
123-
{
124-
p1Angle -= 360;
125-
}
126122
double p2Angle = QgsGeometryUtils::ccwAngle( pt2.y() - centerY, pt2.x() - centerX );
127-
if ( p2Angle > 360 )
128-
{
129-
p2Angle -= 360;
130-
}
131123
double p3Angle = QgsGeometryUtils::ccwAngle( pt3.y() - centerY, pt3.x() - centerX );
132-
if ( p3Angle > 360 )
133-
{
134-
p3Angle -= 360;
135-
}
136124

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

560-
#if 0
561-
void QgsCircularString::clip( const QgsRectangle &rect )
562-
{
563-
//todo...
564-
}
565-
#endif
566-
567548
void QgsCircularString::addToPainterPath( QPainterPath &path ) const
568549
{
569550
int nPoints = numPoints();

0 commit comments

Comments
 (0)
Please sign in to comment.