mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
remove dead code (local variables that were never used)
This commit is contained in:
@@ -906,17 +906,6 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const
|
|||||||
|
|
||||||
if (m_shapeType == Rectangle)
|
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("rx", QString::number(m_xRadius));
|
||||||
result.setAttribute("ry", QString::number(m_yRadius));
|
result.setAttribute("ry", QString::number(m_yRadius));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user