Coding - Clean up the trace debug files (#1487)

Some *trace* old debug classes existed for long time.
Their purpose is accumulte some trace logic for TopOpe or BRepFeat packages.
The problem is that that functionality is no longer used by active developers.
And the functionality in some cases changes behavior and make more complicated to debug.
Lack of documentation how to work with and impact on behavior and
  usage of global/static variables make these classes heavy legacy.
This commit is contained in:
Pasukhin Dmitry
2026-08-23 15:00:47 +01:00
committed by GitHub
parent 5b145ea48a
commit 1a2e039ab9
44 changed files with 12 additions and 2401 deletions
@@ -21,10 +21,6 @@
#include <TopOpeBRepBuild_GTopo.hxx>
#include <TopOpeBRepDS_HDataStructure.hxx>
#ifdef OCCT_DEBUG
extern bool TopOpeBRepBuild_GetcontextSPEON();
#endif
//=================================================================================================
bool TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S, const TopAbs_State TB) const
@@ -51,42 +47,6 @@ bool TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S, const TopAbs_State
}
#endif
#ifdef OCCT_DEBUG
if (TopOpeBRepBuild_GetcontextSPEON())
{ // CONTEXT
tSPS = true; // CONTEXT
bool hasON = false; // CONTEXT
bool isE = (S.ShapeType() == TopAbs_EDGE); // CONTEXT
if (isE)
{ // CONTEXT
const TopoDS_Edge& E = TopoDS::Edge(S); // CONTEXT
bool issE = myDataStructure->DS().IsSectionEdge(E); // CONTEXT
if (issE)
{ // CONTEXT
bool issplitON = IsSplit(E, TopAbs_ON); // CONTEXT
if (issplitON)
{ // CONTEXT
int n = Splits(E, TopAbs_ON).Extent(); // CONTEXT
hasON = (n > 0); // CONTEXT
} // CONTEXT
} // CONTEXT
} // CONTEXT
bool tosplitH = tosplit || hasON; // CONTEXT
if (tSPS)
{
std::cout << "GToSplit context SPEON";
} // CONTEXT
if (tSPS)
{
std::cout << " " << tosplitH << " : tosplit " << tosplit;
} // CONTEXT
if (tSPS)
{
std::cout << " || hasON " << hasON << std::endl;
} // CONTEXT
} // CONTEXT
#endif
return tosplit;
} // GToSplit