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:
@@ -38,8 +38,6 @@
|
||||
|
||||
#undef TDF_DATA_COMMIT_OPTIMIZED
|
||||
|
||||
#define BUC60879
|
||||
|
||||
//=======================================================================
|
||||
//function : TDF_Attribute
|
||||
//purpose : Initializes fields.
|
||||
@@ -224,14 +222,12 @@ Standard_Boolean TDF_Attribute::AfterRetrieval
|
||||
(const Standard_Boolean /*forceIt*/)
|
||||
{ return Standard_True; }
|
||||
|
||||
#ifdef BUC60879
|
||||
//=======================================================================
|
||||
//function : BeforeCommitTransaction
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void TDF_Attribute::BeforeCommitTransaction() {}
|
||||
#endif
|
||||
|
||||
//=======================================================================
|
||||
//function : Backup
|
||||
|
@@ -36,7 +36,6 @@
|
||||
// Therefore, these attributes shouldn't be considered by the COPY mechanism and
|
||||
// the label should be considered as a self-contained.
|
||||
// Correction of the bug consists of ignoring the attributes not involved by the COPY operation.
|
||||
#define BUC60813
|
||||
|
||||
//=======================================================================
|
||||
//function : TDF_CopyLabel
|
||||
@@ -162,11 +161,7 @@ void TDF_CopyLabel::Perform()
|
||||
{
|
||||
myIsDone = Standard_False;
|
||||
if(mySL.Data()->Root().IsDifferent(myTL.Data()->Root()) && //TDF_Data is not the same
|
||||
#ifdef BUC60813
|
||||
!TDF_Tool::IsSelfContained(mySL, myFilter)) return; //source label isn't self-contained
|
||||
#else
|
||||
!TDF_Tool::IsSelfContained(mySL)) return;
|
||||
#endif
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "THE SAME Data" <<endl;
|
||||
|
@@ -41,8 +41,6 @@
|
||||
#undef DEB_DELTA_CREATION
|
||||
#undef TDF_DATA_COMMIT_OPTIMIZED
|
||||
|
||||
#define BUC60879
|
||||
|
||||
#ifdef OCCT_DEBUG_DELTA
|
||||
#define TDF_Data_DebugModified(ACTION) \
|
||||
cout<<"After "<<ACTION<<" #"<<myTransaction+1<<", DF "<<this<<" had "<<myNbTouchedAtt<<" attribute(s) touched. Time = "<<myTime<<endl; \
|
||||
@@ -221,10 +219,8 @@ Standard_Integer TDF_Data::CommitTransaction
|
||||
itr1.Next();
|
||||
// currentAtt = itr1.Value();
|
||||
|
||||
#ifdef BUC60879
|
||||
// A callback:
|
||||
aPtrCurrentAtt->BeforeCommitTransaction();
|
||||
#endif
|
||||
|
||||
backupAtt = aPtrCurrentAtt->myBackup;
|
||||
|
||||
|
Reference in New Issue
Block a user