--- branches/development/src/math/CubicSpline.cpp 2010/07/21 17:51:22 1475 +++ branches/development/src/math/CubicSpline.cpp 2010/07/26 19:00:48 1479 @@ -86,8 +86,6 @@ void CubicSpline::generate() { // make sure the sizes match n = data.size(); - x.resize(n); - y.resize(n); b.resize(n); c.resize(n); d.resize(n); @@ -104,13 +102,6 @@ void CubicSpline::generate() { if (!sorted) sort(data.begin(), data.end()); - // Copy spline data out to separate arrays: - - for (int i = 0; i < n; i++) { - x[i] = data[i].first; - y[i] = data[i].second; - } - // Calculate coefficients for the tridiagonal system: store // sub-diagonal in B, diagonal in D, difference quotient in C.