PD: remove duplicate verifications

This commit is contained in:
mosfet80
2022-03-01 16:46:56 +01:00
committed by wmayer
parent 5430c986f8
commit c181da4461
3 changed files with 2 additions and 7 deletions

View File

@@ -1615,10 +1615,9 @@ static gp_Pnt toPnt(gp_Vec dir)
App::DocumentObjectExecReturn* Hole::execute(void)
{
Part::Feature* profile = 0;
TopoDS_Shape profileshape;
TopoDS_Shape profileshape;
try {
profile = getVerifiedObject();
profileshape = getVerifiedFace();
}
catch (const Base::Exception& e) {

View File

@@ -85,8 +85,6 @@ App::DocumentObjectExecReturn *Pad::execute()
TopoDS_Shape sketchshape;
try {
getVerifiedObject();
sketchshape = getVerifiedFace();
}
catch (const Base::Exception& e) {

View File

@@ -87,8 +87,6 @@ App::DocumentObjectExecReturn *Pocket::execute()
TopoDS_Shape profileshape;
try {
getVerifiedObject();
profileshape = getVerifiedFace();
} catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());