Refactoring. Remove the code after these statements.
--HG-- branch : develop
This commit is contained in:
parent
6499c73d0c
commit
bd656bcfff
|
@ -770,14 +770,11 @@ Unit VAbstractPattern::MUnit() const
|
||||||
{
|
{
|
||||||
case 0:// mm
|
case 0:// mm
|
||||||
return Unit::Mm;
|
return Unit::Mm;
|
||||||
break;
|
|
||||||
case 2:// in
|
case 2:// in
|
||||||
return Unit::Inch;
|
return Unit::Inch;
|
||||||
break;
|
|
||||||
case 1:// cm
|
case 1:// cm
|
||||||
default:
|
default:
|
||||||
return Unit::Cm;
|
return Unit::Cm;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,7 +808,6 @@ quint32 VAbstractPattern::SiblingNodeId(const quint32 &nodeId) const
|
||||||
case Tool::NodeSpline:
|
case Tool::NodeSpline:
|
||||||
case Tool::NodeSplinePath:
|
case Tool::NodeSplinePath:
|
||||||
continue;
|
continue;
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
siblingId = tool.getId();
|
siblingId = tool.getId();
|
||||||
j = 0;// break loop
|
j = 0;// break loop
|
||||||
|
@ -918,7 +914,6 @@ QMap<GHeights, bool> VAbstractPattern::GetGradationHeights() const
|
||||||
map.insert(GHeights::H194, GetParametrBool(domElement, AttrH194, defValue));
|
map.insert(GHeights::H194, GetParametrBool(domElement, AttrH194, defValue));
|
||||||
map.insert(GHeights::H200, GetParametrBool(domElement, AttrH200, defValue));
|
map.insert(GHeights::H200, GetParametrBool(domElement, AttrH200, defValue));
|
||||||
return map;
|
return map;
|
||||||
break;
|
|
||||||
case 1: // TagSizes
|
case 1: // TagSizes
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -1016,7 +1011,6 @@ void VAbstractPattern::SetGradationHeights(const QMap<GHeights, bool> &options)
|
||||||
modified = true;
|
modified = true;
|
||||||
emit patternChanged(false);
|
emit patternChanged(false);
|
||||||
return;
|
return;
|
||||||
break;
|
|
||||||
case 1: // TagSizes
|
case 1: // TagSizes
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -1114,7 +1108,6 @@ QMap<GSizes, bool> VAbstractPattern::GetGradationSizes() const
|
||||||
map.insert(GSizes::S70, GetParametrBool(domElement, AttrS70, defValue));
|
map.insert(GSizes::S70, GetParametrBool(domElement, AttrS70, defValue));
|
||||||
map.insert(GSizes::S72, GetParametrBool(domElement, AttrS72, defValue));
|
map.insert(GSizes::S72, GetParametrBool(domElement, AttrS72, defValue));
|
||||||
return map;
|
return map;
|
||||||
break;
|
|
||||||
case 0: // TagHeights
|
case 0: // TagHeights
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -1212,7 +1205,6 @@ void VAbstractPattern::SetGradationSizes(const QMap<GSizes, bool> &options)
|
||||||
modified = true;
|
modified = true;
|
||||||
emit patternChanged(false);
|
emit patternChanged(false);
|
||||||
return;
|
return;
|
||||||
break;
|
|
||||||
case 0: // TagHeights
|
case 0: // TagHeights
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -263,7 +263,6 @@ bool VDomDocument::GetParametrBool(const QDomElement &domElement, const QString
|
||||||
break;
|
break;
|
||||||
default:// others
|
default:// others
|
||||||
throw VExceptionConversionError(message, name);
|
throw VExceptionConversionError(message, name);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const VExceptionEmptyParameter &e)
|
catch (const VExceptionEmptyParameter &e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user