Skip to content

Commit

Permalink
remove dead code (local variables that were never used)
Browse files Browse the repository at this point in the history
  • Loading branch information
plc-user committed Feb 2, 2025
1 parent de0fa1f commit 331cecc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sources/qetgraphicsitem/qetshapeitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,17 +906,6 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const

if (m_shapeType == Rectangle)
{
QRectF rect(m_P1, m_P2);
rect = rect.normalized();
qreal x = m_xRadius;
if (x > rect.width()/2) {
x = rect.width()/2;
}
qreal y = m_yRadius;
if (y > rect.height()/2) {
y = rect.height()/2;
}

result.setAttribute("rx", QString::number(m_xRadius));
result.setAttribute("ry", QString::number(m_yRadius));
}
Expand Down

0 comments on commit 331cecc

Please sign in to comment.