diff --git a/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.cpp b/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.cpp index 595fdd2d9e79acdd36000a3df90a76dae213a39f..6444ca85d2748b5b78602f4b045efdb539104be3 100644 --- a/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.cpp +++ b/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.cpp @@ -34,9 +34,6 @@ PiecewiseLinearInterpolation::PiecewiseLinearInterpolation( } } -PiecewiseLinearInterpolation::~PiecewiseLinearInterpolation() -{} - double PiecewiseLinearInterpolation::getValue(double pnt_to_interpolate) const { // search interval that has the point inside diff --git a/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h b/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h index dbd26340bee58746c74a655d93d32c6419eecccb..81136e6eb73a7960f9f64b1b0166e2a00651ba9b 100644 --- a/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h +++ b/MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h @@ -22,7 +22,7 @@ namespace MathLib /** * This class implements a one dimensional piecewise linear interpolation algorithm. */ -class PiecewiseLinearInterpolation +class PiecewiseLinearInterpolation final { public: /** @@ -48,8 +48,6 @@ public: std::vector<double>&& values_at_supp_pnts, bool supp_pnts_sorted = false); - virtual ~PiecewiseLinearInterpolation(); - /** * \brief Calculates the interpolation value. * @param pnt_to_interpolate The point should be located within the range