From fb13cbf4b5291bb5e9f5643fad3a8676d6ed533f Mon Sep 17 00:00:00 2001 From: Uwe Date: Fri, 10 Mar 2023 01:44:19 +0100 Subject: [PATCH] [TD] fix compiler warning about code duplication and unused variable --- src/Mod/TechDraw/App/Geometry.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/App/Geometry.cpp b/src/Mod/TechDraw/App/Geometry.cpp index 632b7e3d9d..d5eb694332 100644 --- a/src/Mod/TechDraw/App/Geometry.cpp +++ b/src/Mod/TechDraw/App/Geometry.cpp @@ -1775,11 +1775,8 @@ TopoDS_Edge GeometryUtils::asCircle(TopoDS_Edge occEdge, bool& arc) } } } - catch (const Standard_Failure& e) { - // return null shape to indicate that we could not make a circle from this bspline - return TopoDS_Edge(); - } catch (...) { + // return null shape to indicate that we could not make a circle from this bspline return TopoDS_Edge(); } return result;