Modeling: Remove unused class member

Change-Id: Ic243ace9fd27920c9c16b116e3e8139c04be1057
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-04-23 12:30:45 +02:00
parent 5c65b953c8
commit b1352fb044

View File

@@ -167,16 +167,13 @@ public:
IconCommandParameter() = default;
IconCommandParameter(int keyword, ShapeValueF::Unit unit, ShapeValueF::Origin origin = ShapeValueF::OriginSmart)
: m_keyword(keyword),
m_unit(unit),
IconCommandParameter(ShapeValueF::Unit unit, ShapeValueF::Origin origin = ShapeValueF::OriginSmart)
: m_unit(unit),
m_origin(origin)
{
}
IconCommandParameter(int keyword, Type type)
: m_keyword(keyword),
m_type(type)
IconCommandParameter(Type type) : m_type(type)
{
}
@@ -191,7 +188,6 @@ public:
void setBoolean(bool boolean) { m_boolean = boolean; }
private:
int m_keyword = -1;
Type m_type = ShapeValue;
ShapeValueF::Unit m_unit = ShapeValueF::UnitAbsolute;
ShapeValueF::Origin m_origin = ShapeValueF::OriginSmart;
@@ -460,22 +456,22 @@ void StereotypeDefinitionParser::parseIcon()
QPair<int, StereotypeDefinitionParser::IconCommandParameter> StereotypeDefinitionParser::SCALED(int keyword)
{
return qMakePair(keyword, IconCommandParameter(keyword, ShapeValueF::UnitScaled));
return qMakePair(keyword, IconCommandParameter(ShapeValueF::UnitScaled));
}
QPair<int, StereotypeDefinitionParser::IconCommandParameter> StereotypeDefinitionParser::FIX(int keyword)
{
return qMakePair(keyword, IconCommandParameter(keyword, ShapeValueF::UnitRelative));
return qMakePair(keyword, IconCommandParameter(ShapeValueF::UnitRelative));
}
QPair<int, StereotypeDefinitionParser::IconCommandParameter> StereotypeDefinitionParser::ABSOLUTE(int keyword)
{
return qMakePair(keyword, IconCommandParameter(keyword, ShapeValueF::UnitAbsolute));
return qMakePair(keyword, IconCommandParameter(ShapeValueF::UnitAbsolute));
}
QPair<int, StereotypeDefinitionParser::IconCommandParameter> StereotypeDefinitionParser::BOOLEAN(int keyword)
{
return qMakePair(keyword, IconCommandParameter(keyword, IconCommandParameter::Boolean));
return qMakePair(keyword, IconCommandParameter(IconCommandParameter::Boolean));
}
IconShape StereotypeDefinitionParser::parseIconShape()