mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -14,9 +14,6 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#define BUC60915 //GG 05/06/01 Enable to compute the requested arrow size
|
||||
// if any in all dimensions.
|
||||
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
|
||||
#include <AIS_Chamf2dDimension.ixx>
|
||||
@@ -99,11 +96,7 @@ AIS_Chamf2dDimension::AIS_Chamf2dDimension(const TopoDS_Shape& aFShape,
|
||||
myText = aText;
|
||||
myPosition = aPosition;
|
||||
mySymbolPrs = aSymbolPrs;
|
||||
#ifdef BUC60915
|
||||
SetArrowSize( anArrowSize );
|
||||
#else
|
||||
myArrowSize = anArrowSize;
|
||||
#endif
|
||||
myAutomaticPosition = Standard_False;
|
||||
}
|
||||
|
||||
@@ -197,9 +190,7 @@ void AIS_Chamf2dDimension::Compute(const Handle(PrsMgr_PresentationManager3d)& ,
|
||||
//determiner la taille de la fleche
|
||||
//-------------------------------------------------
|
||||
|
||||
#ifdef BUC60915
|
||||
if( !myArrowSizeIsDefined ) {
|
||||
#endif
|
||||
Standard_Real arrsize = myArrowSize;
|
||||
if ( (myVal/4) < arrsize)
|
||||
arrsize = myVal/4;
|
||||
@@ -207,13 +198,9 @@ void AIS_Chamf2dDimension::Compute(const Handle(PrsMgr_PresentationManager3d)& ,
|
||||
arrsize = 30.;
|
||||
else if (arrsize < 8.)
|
||||
arrsize = 8.;
|
||||
#ifdef BUC60915
|
||||
myArrowSize = arrsize;
|
||||
}
|
||||
arr->SetLength(myArrowSize);
|
||||
#else
|
||||
arr->SetLength(arrsize);
|
||||
#endif
|
||||
|
||||
//Calcul de la presentation
|
||||
DsgPrs_Chamf2dPresentation::Add(aPresentation,
|
||||
|
Reference in New Issue
Block a user