mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -16,10 +16,6 @@
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_GraphContent.hxx>
|
||||
|
||||
//#define PRINTDEB
|
||||
#define pbgraphtool
|
||||
|
||||
|
||||
IFGraph_StrongComponants::IFGraph_StrongComponants
|
||||
(const Interface_Graph& agraph, const Standard_Boolean whole)
|
||||
: IFGraph_SubPartsIterator (agraph, whole) { }
|
||||
@@ -28,35 +24,10 @@ IFGraph_StrongComponants::IFGraph_StrongComponants
|
||||
{
|
||||
Interface_GraphContent iter = Loaded();
|
||||
Interface_Graph G(thegraph); G.GetFromIter(iter,0);
|
||||
#ifdef pbgraphtool
|
||||
Standard_Integer nb = G.Size();
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
if (!G.IsPresent(i)) continue;
|
||||
AddPart();
|
||||
GetFromEntity (G.Entity(i),Standard_False);
|
||||
}
|
||||
#else
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"StrongComponants :"<<endl;
|
||||
#endif
|
||||
for (IFGraph_SortedStrongs res(G); res.More(); res.Next()) {
|
||||
Standard_Integer nb = res.NbVertices();
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" Iteration, Vertices:"<<nb<<" :";
|
||||
#endif
|
||||
if (nb == 0) continue;
|
||||
AddPart();
|
||||
for (Standard_Integer i = 1; i <= nb; i ++)
|
||||
#ifdef OCCT_DEBUG
|
||||
{
|
||||
Handle(Standard_Transient) oneres = res.Value(i);
|
||||
cout<<" "<<G.EntityNumber(oneres);
|
||||
GetFromEntity(oneres,Standard_False);
|
||||
}
|
||||
cout<<endl;
|
||||
#else
|
||||
GetFromEntity(res.Value(i),Standard_False);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user