Skip to content
Permalink
Browse files
remove unreachable code
  • Loading branch information
lbartoletti committed Apr 9, 2021
1 parent 06d9b3f commit a197bc63a29a8fe9dd315fdadcfd6aeb021fdf70
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/core/geometry/qgstriangle.cpp
@@ -182,6 +182,7 @@ bool QgsTriangle::fromWkt( const QString &wkt )
QPair<QgsWkbTypes::Type, QString> childParts = QgsGeometryUtils::wktReadBlock( childWkt );

QgsWkbTypes::Type flatCurveType = QgsWkbTypes::flatType( childParts.first );

if ( flatCurveType == QgsWkbTypes::LineString )
mInteriorRings.append( new QgsLineString() );
else
@@ -196,11 +197,6 @@ bool QgsTriangle::fromWkt( const QString &wkt )
}
}

if ( mInteriorRings.isEmpty() )
{
clear();
return false;
}
mExteriorRing.reset( mInteriorRings.takeFirst() );
if ( ( mExteriorRing->numPoints() < 3 ) || ( mExteriorRing->numPoints() > 4 ) || ( mExteriorRing->numPoints() == 4 && mExteriorRing->startPoint() != mExteriorRing->endPoint() ) )
{

0 comments on commit a197bc6

Please sign in to comment.