Skip to content

Commit 0dc5e83

Browse files
committed
Fix unused variable warning
1 parent 44546e8 commit 0dc5e83

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/core/pal/feature.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,19 +1170,6 @@ int FeaturePart::createCurvedCandidatesAlongLine( QList< LabelPosition* >& lPos,
11701170
return 0;
11711171
}
11721172

1173-
//calculate overall angle of line
1174-
double lineAngle;
1175-
double bx = mapShape->x[0];
1176-
double by = mapShape->y[0];
1177-
double ex = mapShape->x[ mapShape->nbPoints - 1 ];
1178-
double ey = mapShape->y[ mapShape->nbPoints - 1 ];
1179-
if ( qgsDoubleNear( ey, by ) && qgsDoubleNear( ex, bx ) )
1180-
{
1181-
lineAngle = 0.0;
1182-
}
1183-
else
1184-
lineAngle = atan2( ey - by, ex - bx );
1185-
11861173
QLinkedList<LabelPosition*> positions;
11871174
double delta = qMax( li->label_height, total_distance / mLF->layer()->pal->line_p );
11881175

0 commit comments

Comments
 (0)