From 3a05941ad73c0d9f680bff4bf58f26e26199b7f1 Mon Sep 17 00:00:00 2001 From: nwolek Date: Thu, 24 Dec 2015 23:53:57 -0500 Subject: [PATCH] Interpolate: removing interpolateAndTest functions that are no longer used. see issue #56 --- test/Interpolation/Interpolation.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/test/Interpolation/Interpolation.cpp b/test/Interpolation/Interpolation.cpp index 5ab3781..663cfb7 100644 --- a/test/Interpolation/Interpolation.cpp +++ b/test/Interpolation/Interpolation.cpp @@ -28,31 +28,6 @@ class InterpolationTest { } - template - auto interpolateAndTest(Jamoma::Sample x0, Jamoma::Sample x1, Jamoma::Sample aDelta, Jamoma::Sample anExpectedValue) { - InterpolationType interpolator; - auto interpolatedValue = interpolator(x0, x1, aDelta); - auto result = mTest->compare(interpolatedValue , anExpectedValue); - - if (result == false) - mTest->log("BAD INTERPOLATION @ delta=%.5f ( value=%.10f expected=%.10f )", aDelta, interpolatedValue, anExpectedValue); - return result; - } - - // TODO: way to make a single function template that is variadic? - template - auto interpolateAndTest(float x0, float x1,float x2, float x3, float aDelta, float anExpectedValue) { - InterpolationType interpolator; - auto interpolatedValue = interpolator(x0, x1, x2, x3, aDelta); - auto result = mTest->compare(interpolatedValue , anExpectedValue); - - if (result == false) - mTest->log("BAD INTERPOLATION @ delta=%.5f ( value=%.10f expected=%.10f )", aDelta, interpolatedValue, anExpectedValue); - return result; - } - - - void testLinear() { int badSampleCount = 0; Jamoma::Interpolation::Linear my_interp;