0027275: Unused formal parameter in BSplCLib::EvalBsplineBasis
authoraml <aml@opencascade.com>
Thu, 17 Mar 2016 11:22:22 +0000 (14:22 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 22 Apr 2016 12:21:24 +0000 (15:21 +0300)
Unused formal parameter is deleted.

src/BSplCLib/BSplCLib.cxx
src/BSplCLib/BSplCLib.hxx
src/BSplCLib/BSplCLib_2.cxx
src/BSplCLib/BSplCLib_CurveComputation.gxx
src/BSplSLib/BSplSLib.cxx
src/FairCurve/FairCurve_DistributionOfJerk.cxx
src/FairCurve/FairCurve_DistributionOfSagging.cxx
src/FairCurve/FairCurve_DistributionOfTension.cxx
src/GeomLib/GeomLib_DenominatorMultiplier.cxx

index e4ab7f5..f6a7a29 100644 (file)
@@ -3211,8 +3211,7 @@ void  BSplCLib::Eval
 
   BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
   ErrorCode =
-    BSplCLib::EvalBsplineBasis(1,
-                              LocalRequest,
+    BSplCLib::EvalBsplineBasis(LocalRequest,
                               Order,
                               FlatKnots,
                               LocalParameter,
@@ -3410,8 +3409,7 @@ void  BSplCLib::Eval
   BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
   
   ErrorCode =
-    BSplCLib::EvalBsplineBasis(1,
-                              LocalRequest,
+    BSplCLib::EvalBsplineBasis(LocalRequest,
                               Order,
                               FlatKnots,
                               LocalParameter,
index f1dba6f..b2f9478 100644 (file)
@@ -702,7 +702,13 @@ public:
   //! value of Nth derivative of first non vanishing
   //! Bspline function which has Index FirstNonZeroBsplineIndex
   //! if N <= DerivativeOrder + 1
-  Standard_EXPORT static Standard_Integer EvalBsplineBasis (const Standard_Integer Side, const Standard_Integer DerivativeOrder, const Standard_Integer Order, const TColStd_Array1OfReal& FlatKnots, const Standard_Real Parameter, Standard_Integer& FirstNonZeroBsplineIndex, math_Matrix& BsplineBasis, const Standard_Boolean isPeriodic = Standard_False);
+  Standard_EXPORT static Standard_Integer EvalBsplineBasis (const Standard_Integer DerivativeOrder,
+                                                            const Standard_Integer Order,
+                                                            const TColStd_Array1OfReal& FlatKnots,
+                                                            const Standard_Real Parameter,
+                                                            Standard_Integer& FirstNonZeroBsplineIndex,
+                                                            math_Matrix& BsplineBasis,
+                                                            const Standard_Boolean isPeriodic = Standard_False);
   
   //! This Builds   a fully  blown   Matrix of
   //! (ni)
index 575753d..41b0835 100644 (file)
@@ -346,8 +346,7 @@ BSplCLib::BuildBSpMatrix(const  TColStd_Array1OfReal&     Parameters,
   
   for (ii = Parameters.Lower() ; ii <= Parameters.Upper() ; ii++) {
     ErrorCode =
-      BSplCLib::EvalBsplineBasis(1,
-                                ContactOrderArray(ii),
+      BSplCLib::EvalBsplineBasis(ContactOrderArray(ii),
                                 Order,
                                 FlatKnots,
                                 Parameters(ii),
@@ -433,9 +432,7 @@ BSplCLib::FactorBandedMatrix(math_Matrix&   Matrix,
 
 Standard_Integer 
 BSplCLib::EvalBsplineBasis
-//(const Standard_Integer              Side, // = 1 rigth side, -1 left side 
-(const Standard_Integer              , // = 1 rigth side, -1 left side 
- const  Standard_Integer              DerivativeRequest,
+(const  Standard_Integer              DerivativeRequest,
  const  Standard_Integer              Order,
  const  TColStd_Array1OfReal&         FlatKnots,
  const  Standard_Real                 Parameter,
index 3a4abb0..d9201e2 100644 (file)
@@ -1230,8 +1230,7 @@ void BSplCLib::MovePoint (const Standard_Real            U,
   math_Matrix BSplineBasis(1, 1,
                           1, Degree+1);
   Standard_Integer ErrorCode =
-    BSplCLib::EvalBsplineBasis(1,
-                              0,
+    BSplCLib::EvalBsplineBasis(0,
                               Degree+1,
                               FlatKnots,
                               U,
index 877e17b..da58821 100644 (file)
@@ -2805,8 +2805,7 @@ void BSplSLib::MovePoint (const Standard_Real            U,
   Standard_Integer UFirstNonZeroBsplineIndex;
   math_Matrix UBSplineBasis(1, 1,
                            1, UDegree+1);
-  Standard_Integer ErrorCod1 =  BSplCLib::EvalBsplineBasis(1,
-                                                          0,
+  Standard_Integer ErrorCod1 =  BSplCLib::EvalBsplineBasis(0,
                                                           UDegree+1,
                                                           UFlatKnots,
                                                           U,
@@ -2816,8 +2815,7 @@ void BSplSLib::MovePoint (const Standard_Real            U,
   Standard_Integer VFirstNonZeroBsplineIndex;
   math_Matrix VBSplineBasis(1, 1,
                            1, VDegree+1);
-  Standard_Integer ErrorCod2 =  BSplCLib::EvalBsplineBasis(1,
-                                                          0,
+  Standard_Integer ErrorCod2 =  BSplCLib::EvalBsplineBasis(0,
                                                           VDegree+1,
                                                           VFlatKnots,
                                                           V,
index e5c42ac..0a9d15e 100644 (file)
@@ -60,7 +60,7 @@ Standard_Boolean FairCurve_DistributionOfJerk::Value(const math_Vector& TParam,
                                            // Dans EvalBsplineBasis C"' <=> DerivOrder = 4
                                            // et il faut ajouter 1 rang dans la matrice Base => 5 rangs
    
-  ier  =  BSplCLib::EvalBsplineBasis(1, 3,  MyBSplOrder, 
+  ier  =  BSplCLib::EvalBsplineBasis(3,  MyBSplOrder, 
                                      MyFlatKnots->Array1(), TParam(TParam.Lower()),
                                      FirstNonZero, Base );
   if (ier != 0) return Standard_False;
index 85a1a7c..e600810 100644 (file)
@@ -55,7 +55,7 @@ Standard_Boolean FairCurve_DistributionOfSagging::Value(const math_Vector& TPara
                                            // Dans EvalBsplineBasis C" <=> DerivOrder = 3
                                            // et il faut ajouter 1 rang dans la matrice Base => 4 rang
    
-  ier  =  BSplCLib::EvalBsplineBasis(1, 2,  MyBSplOrder, 
+  ier  =  BSplCLib::EvalBsplineBasis(2,  MyBSplOrder, 
                                      MyFlatKnots->Array1(), TParam(TParam.Lower()),
                                      FirstNonZero, Base );
   if (ier != 0) return Standard_False;
index dc1c5ef..a98a17c 100644 (file)
@@ -62,7 +62,7 @@ Standard_Boolean FairCurve_DistributionOfTension::Value(const math_Vector& TPara
                                            // Dans EvalBsplineBasis C' <=> DerivOrder = 2
                                            // et il faut ajouter 1 rang dans la matrice Base => 3 rang
    
-  ier  =  BSplCLib::EvalBsplineBasis( 1, 1,  MyBSplOrder, 
+  ier  =  BSplCLib::EvalBsplineBasis(1,  MyBSplOrder, 
                                     MyFlatKnots->Array1(), TParam(TParam.Lower()),
                                     FirstNonZero, Base );
   if (ier != 0) return Standard_False;
index 59f962e..ec55f88 100644 (file)
@@ -107,7 +107,6 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real  UParamet
  Standard_Integer        index,i;
 
  BSplCLib::EvalBsplineBasis(1,
-                           1,
                            4,
                            myKnotFlatVector,
                            0.0,
@@ -116,7 +115,6 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real  UParamet
  B1prim0=BSplineBasisDeriv(2,2);
  
  BSplCLib::EvalBsplineBasis(1,
-                           1,
                            4,
                            myKnotFlatVector,
                            1.0,
@@ -125,8 +123,7 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real  UParamet
  Bprelastprim1=BSplineBasisDeriv(2,3);
 
  math_Matrix             BSplineBasisValue(1,1,1,4,0.0);
- BSplCLib::EvalBsplineBasis(1,
-                           0,
+ BSplCLib::EvalBsplineBasis(0,
                            4,
                            myKnotFlatVector,
                            UParameter,