From: Pawel Date: Fri, 4 Jan 2013 11:04:50 +0000 (+0100) Subject: 0023686: The call to 'Precision::Angular()' is pointless in the Release build X-Git-Tag: V6_6_0_beta~135 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f8814ccf5251146156f8aadf0fbfb2a371a4b885;p=occt-copy.git 0023686: The call to 'Precision::Angular()' is pointless in the Release build Calling 'Precision::Angular()' inky if 'DEB' is defined. --- diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx index 2365ce3bdc..e229364b7e 100755 --- a/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx +++ b/src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx @@ -1138,10 +1138,6 @@ Standard_EXPORT Standard_Boolean FUN_ds_shareG gp_Dir nxx1; ok = FUN_tool_getxx(F1,E1,par1,nggeomF1,nxx1); if (!ok) return Standard_False; -#ifdef DEB -// Standard_Real tol = 1.e3* -#endif - Precision::Angular(); Standard_Real prod = nxx1.Dot(nxx2); shareG = (prod > 0.); return Standard_True; @@ -1753,10 +1749,7 @@ Standard_EXPORT void FUN_ds_completeforSE6(const Handle(TopOpeBRepDS_HDataStruct gp_Vec tgE ; ok = TopOpeBRepTool_TOOL::TggeomE(parE,SE,tgE); // dir Standard_Real dot = tgEsd.Dot(tgE); #ifdef DEB - Standard_Real tola = -#endif - Precision::Angular(); -#ifdef DEB + Standard_Real tola = Precision::Angular(); if (Abs(dot) < tola) Standard_Failure::Raise("completeforSE6"); #endif Standard_Boolean SO = (dot > 0.);