summaryrefslogtreecommitdiffhomepage
path: root/spline/spline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r--spline/spline.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index b6fdd9c5..823fd64f 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -7,6 +7,7 @@
*/
#include "spline.hpp"
+#include "compat/math.hpp"
#include <algorithm>
#include <cstdlib>
@@ -105,12 +106,6 @@ warn_result_unused bool spline::get_last_value(QPointF& point)
return activep;
}
-template <typename T>
-static T signum(T val)
-{
- return (T(0) < val) - (val < T(0));
-}
-
float spline::get_value_internal(int x)
{
if (!validp)