mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix warning typedef XXX locally defined but not used
This commit is contained in:
@@ -295,11 +295,7 @@ namespace Eigen
|
||||
enum { Order = SplineTraits<SplineType>::OrderAtCompileTime };
|
||||
enum { DerivativeOrder = DerivativeType::ColsAtCompileTime };
|
||||
|
||||
typedef typename SplineTraits<SplineType>::Scalar Scalar;
|
||||
|
||||
typedef typename SplineTraits<SplineType>::BasisVectorType BasisVectorType;
|
||||
typedef typename SplineTraits<SplineType>::ControlPointVectorType ControlPointVectorType;
|
||||
|
||||
typedef typename SplineTraits<SplineType,DerivativeOrder>::BasisDerivativeType BasisDerivativeType;
|
||||
typedef typename BasisDerivativeType::ConstRowXpr BasisDerivativeRowXpr;
|
||||
|
||||
@@ -358,7 +354,6 @@ namespace Eigen
|
||||
typedef typename SplineTraits<SplineType>::Scalar Scalar;
|
||||
typedef typename SplineTraits<SplineType>::BasisVectorType BasisVectorType;
|
||||
typedef typename SplineTraits<SplineType>::KnotVectorType KnotVectorType;
|
||||
typedef typename SplineTraits<SplineType>::ControlPointVectorType ControlPointVectorType;
|
||||
|
||||
const KnotVectorType& U = spline.knots();
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@ namespace Eigen
|
||||
template <typename KnotVectorType>
|
||||
void KnotAveraging(const KnotVectorType& parameters, DenseIndex degree, KnotVectorType& knots)
|
||||
{
|
||||
typedef typename KnotVectorType::Scalar Scalar;
|
||||
|
||||
knots.resize(parameters.size()+degree+1);
|
||||
|
||||
for (DenseIndex j=1; j<parameters.size()-degree; ++j)
|
||||
@@ -118,7 +116,6 @@ namespace Eigen
|
||||
SplineType SplineFitting<SplineType>::Interpolate(const PointArrayType& pts, DenseIndex degree, const KnotVectorType& knot_parameters)
|
||||
{
|
||||
typedef typename SplineType::KnotVectorType::Scalar Scalar;
|
||||
typedef typename SplineType::BasisVectorType BasisVectorType;
|
||||
typedef typename SplineType::ControlPointVectorType ControlPointVectorType;
|
||||
|
||||
typedef Matrix<Scalar,Dynamic,Dynamic> MatrixType;
|
||||
|
||||
Reference in New Issue
Block a user