From 36b9b58eb3cf7d17fb01459d03e8326d3f3c8ddf Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Mon, 24 Jun 2024 17:41:39 +0200 Subject: [PATCH] [MOD:PART] removed unused parameter (#14252) d variable are never used Co-authored-by: Chris Hennes --- src/Mod/Part/App/TopoShape.h | 5 ----- src/Mod/Part/App/TopoShapeExpansion.cpp | 1 - src/Mod/PartDesign/App/FeatureRevolution.cpp | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Mod/Part/App/TopoShape.h b/src/Mod/Part/App/TopoShape.h index 1bfab7ac14..cceb920f8e 100644 --- a/src/Mod/Part/App/TopoShape.h +++ b/src/Mod/Part/App/TopoShape.h @@ -1108,7 +1108,6 @@ public: * * @param base: the basis shape * @param axis: the revolving axis - * @param d: rotation angle in degree * @param face_maker: optional type name of the the maker used to make a * face from basis shape * @param supportface: the bottom face for the revolution, or null @@ -1122,7 +1121,6 @@ public: */ TopoShape& makeElementRevolution(const TopoShape& _base, const gp_Ax1& axis, - double d, const TopoDS_Face& supportface, const TopoDS_Face& uptoface, const char* face_maker = nullptr, @@ -1133,7 +1131,6 @@ public: /** Make revolved shell around a basis shape * * @param axis: the revolving axis - * @param d: rotation angle in degree * @param face_maker: optional type name of the the maker used to make a * face from basis shape * @param supportface: the bottom face for the revolution, or null @@ -1146,7 +1143,6 @@ public: * @return Return the generated new shape. The TopoShape itself is not modified. */ TopoShape& makeElementRevolution(const gp_Ax1& axis, - double d, const TopoDS_Face& supportface, const TopoDS_Face& uptoface, const char* face_maker = nullptr, @@ -1156,7 +1152,6 @@ public: { return TopoShape(0, Hasher).makeElementRevolution(*this, axis, - d, supportface, uptoface, face_maker, diff --git a/src/Mod/Part/App/TopoShapeExpansion.cpp b/src/Mod/Part/App/TopoShapeExpansion.cpp index f77f528d71..630d9b737d 100644 --- a/src/Mod/Part/App/TopoShapeExpansion.cpp +++ b/src/Mod/Part/App/TopoShapeExpansion.cpp @@ -4455,7 +4455,6 @@ TopoShape& TopoShape::makeElementRevolve(const TopoShape& _base, TopoShape& TopoShape::makeElementRevolution(const TopoShape& _base, const gp_Ax1& axis, - [[maybe_unused]]double d, const TopoDS_Face& supportface, const TopoDS_Face& uptoface, const char* face_maker, diff --git a/src/Mod/PartDesign/App/FeatureRevolution.cpp b/src/Mod/PartDesign/App/FeatureRevolution.cpp index e392150fe2..82565d9f20 100644 --- a/src/Mod/PartDesign/App/FeatureRevolution.cpp +++ b/src/Mod/PartDesign/App/FeatureRevolution.cpp @@ -198,7 +198,7 @@ App::DocumentObjectExecReturn* Revolution::execute() // revolve the face to a solid // TopoShape result(0); try { - result = base.makeElementRevolution(gp_Ax1(pnt, dir), angle, supportface, upToFace); + result = base.makeElementRevolution(gp_Ax1(pnt, dir), supportface, upToFace); } catch (Standard_Failure&) { return new App::DocumentObjectExecReturn("Could not revolve the sketch!");