# HG changeset patch # User Chris Cannam # Date 1342818749 -3600 # Node ID c5cd88de5809c33af1098a2df37a8f9e3a7a3f2c # Parent 53260757fc9f962333bbc3c4556728e1df086d1e Remove redundant code diff -r 53260757fc9f -r c5cd88de5809 PeakInterpolator.cpp --- a/PeakInterpolator.cpp Fri Jul 20 22:06:15 2012 +0100 +++ b/PeakInterpolator.cpp Fri Jul 20 22:12:29 2012 +0100 @@ -26,19 +26,6 @@ #include -static double cubicInterpolate(const double y[4], double x) -{ - double a0 = y[3] - y[2] - y[0] + y[1]; - double a1 = y[0] - y[1] - a0; - double a2 = y[2] - y[0]; - double a3 = y[1]; - return - a0 * x * x * x + - a1 * x * x + - a2 * x + - a3; -} - double PeakInterpolator::findPeakLocation(const double *data, int size) {