mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025765: Coding rules - clean up code from obsolete macro checks
Unused code paths (including definition of these macros and meaningless comments) were eliminated.
This commit is contained in:
@@ -33,8 +33,6 @@
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
#include <GeomAbs_CurveType.hxx>
|
||||
|
||||
#define OCC2932
|
||||
|
||||
//=======================================================================
|
||||
//function : GetID
|
||||
//purpose :
|
||||
@@ -73,7 +71,6 @@ Handle(TDataXtd_Axis) TDataXtd_Axis::Set (const TDF_Label& L, const gp_Lin& line
|
||||
{
|
||||
Handle(TDataXtd_Axis) A = Set (L);
|
||||
|
||||
#ifdef OCC2932
|
||||
Handle(TNaming_NamedShape) aNS;
|
||||
if(L.FindAttribute(TNaming_NamedShape::GetID(), aNS)) {
|
||||
if(!aNS->Get().IsNull())
|
||||
@@ -93,7 +90,6 @@ Handle(TDataXtd_Axis) TDataXtd_Axis::Set (const TDF_Label& L, const gp_Lin& line
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
TNaming_Builder B (L);
|
||||
B.Generated (BRepBuilderAPI_MakeEdge(line));
|
||||
return A;
|
||||
|
@@ -30,8 +30,6 @@
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <GeomLib_IsPlanarSurface.hxx>
|
||||
|
||||
#define OCC2932
|
||||
|
||||
//=======================================================================
|
||||
//function : GetID
|
||||
//purpose :
|
||||
@@ -70,7 +68,6 @@ Handle(TDataXtd_Plane) TDataXtd_Plane::Set (const TDF_Label& L, const gp_Pln& P)
|
||||
{
|
||||
Handle(TDataXtd_Plane) A = Set (L);
|
||||
|
||||
#ifdef OCC2932
|
||||
Handle(TNaming_NamedShape) aNS;
|
||||
if(L.FindAttribute(TNaming_NamedShape::GetID(), aNS)) {
|
||||
if(!aNS->Get().IsNull())
|
||||
@@ -94,7 +91,6 @@ Handle(TDataXtd_Plane) TDataXtd_Plane::Set (const TDF_Label& L, const gp_Pln& P)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
TNaming_Builder B(L);
|
||||
B.Generated(BRepBuilderAPI_MakeFace(P));
|
||||
|
@@ -29,8 +29,6 @@
|
||||
|
||||
#include <BRep_Tool.hxx>
|
||||
|
||||
#define OCC2932
|
||||
|
||||
//=======================================================================
|
||||
//function : GetID
|
||||
//purpose :
|
||||
@@ -67,7 +65,6 @@ Handle(TDataXtd_Point) TDataXtd_Point::Set (const TDF_Label& L, const gp_Pnt& P)
|
||||
{
|
||||
Handle(TDataXtd_Point) A = Set (L);
|
||||
|
||||
#ifdef OCC2932
|
||||
Handle(TNaming_NamedShape) aNS;
|
||||
if(L.FindAttribute(TNaming_NamedShape::GetID(), aNS)) {
|
||||
if(!aNS->Get().IsNull())
|
||||
@@ -80,7 +77,6 @@ Handle(TDataXtd_Point) TDataXtd_Point::Set (const TDF_Label& L, const gp_Pnt& P)
|
||||
return A;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
TNaming_Builder B(L);
|
||||
B.Generated(BRepBuilderAPI_MakeVertex(P));
|
||||
|
@@ -24,7 +24,6 @@
|
||||
#include <TNaming_Tool.hxx>
|
||||
#include <TNaming.hxx>
|
||||
|
||||
#define OCC2932
|
||||
//=======================================================================
|
||||
//function : Find
|
||||
//purpose :
|
||||
@@ -78,14 +77,12 @@ Handle(TDataXtd_Shape) TDataXtd_Shape::Set (const TDF_Label& label, const TopoDS
|
||||
A = TDataXtd_Shape::New (label);
|
||||
}
|
||||
|
||||
#ifdef OCC2932
|
||||
Handle(TNaming_NamedShape) aNS;
|
||||
if(label.FindAttribute(TNaming_NamedShape::GetID(), aNS)) {
|
||||
if(!aNS->Get().IsNull())
|
||||
if(aNS->Get() == shape)
|
||||
return A;
|
||||
}
|
||||
#endif
|
||||
|
||||
TNaming_Builder B(label);
|
||||
B.Generated(shape);
|
||||
|
Reference in New Issue
Block a user