mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0024096: Eliminate compiler warning C4505 in MSVC++ with warning level 4
Removed obsolete functions from sources. Some useful debug functions were 'defined' ( put into #ifdef ...#endif ) Removed some redundant code
This commit is contained in:
@@ -44,11 +44,6 @@ static Standard_CString name = tname ;
|
||||
static Standard_Integer nbb = 0;
|
||||
*/
|
||||
|
||||
#ifdef DEB
|
||||
static Standard_Boolean PointIsOnCurve(const Handle(Geom2d_Curve)& C,
|
||||
const gp_Pnt2d& P,
|
||||
Standard_Real& U);
|
||||
#endif
|
||||
static Standard_Boolean IsMaxRC (const Handle(Geom2d_Curve)& C,
|
||||
Standard_Real U,
|
||||
Standard_Real& R);
|
||||
@@ -543,26 +538,6 @@ const Handle(Geom2d_TrimmedCurve)& Bisector_Bisec::ChangeValue()
|
||||
return thebisector;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
//function : PointIsOnCurve
|
||||
// purpose :
|
||||
//=============================================================================
|
||||
#ifdef DEB
|
||||
static Standard_Boolean PointIsOnCurve(const Handle(Geom2d_Curve)& C,
|
||||
const gp_Pnt2d& P,
|
||||
Standard_Real& U)
|
||||
{
|
||||
if (C->Value(C->FirstParameter()).IsEqual(P,Precision::Confusion())) {
|
||||
U = C->FirstParameter();
|
||||
return Standard_True;
|
||||
}
|
||||
if (C->Value(C->LastParameter()).IsEqual(P,Precision::Confusion())) {
|
||||
U = C->LastParameter();
|
||||
return Standard_True;
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
#endif
|
||||
//=============================================================================
|
||||
//function : ReplaceByLineIfIsToSmall
|
||||
//purpose : If the size of an algorithmic bissectrice is negligeable it is
|
||||
|
@@ -432,7 +432,7 @@ void Bisector_BisecPC::Values(const Standard_Real U,
|
||||
//purpose :
|
||||
//=============================================================================
|
||||
// Unused :
|
||||
#ifdef DEB
|
||||
#ifdef DEB_CUR
|
||||
static Standard_Real Curvature (const Handle(Geom2d_Curve)& C,
|
||||
Standard_Real U,
|
||||
Standard_Real Tol)
|
||||
@@ -493,15 +493,17 @@ Standard_Real Bisector_BisecPC::Distance (const Standard_Real U) const
|
||||
else {
|
||||
Standard_Real A = 0.5*SquareMagPPC/Prosca;
|
||||
Standard_Real Dist = A*A*NorNor;
|
||||
#ifdef DEB_CUR
|
||||
//----------------------------------------
|
||||
// Test Curvature if the curve is concave.
|
||||
//----------------------------------------
|
||||
// if (!isConvex){
|
||||
// Standard_Real K = Curvature(curve,UOnCurve,Precision::Confusion());
|
||||
// if (K != 0.) {
|
||||
// if (Dist > 1/(K*K)) { Dist = Precision::Infinite();}
|
||||
// }
|
||||
// }
|
||||
if (!isConvex){
|
||||
Standard_Real K = Curvature(curve,UOnCurve,Precision::Confusion());
|
||||
if (K != 0.) {
|
||||
if (Dist > 1/(K*K)) { Dist = Precision::Infinite();}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return Dist;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user