summaryrefslogtreecommitdiffhomepage
path: root/spline/spline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 19:35:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 19:35:29 +0100
commitd361f57c8064ce13a0478653050b169dc94e2e99 (patch)
tree73613b75bc4e6533455b6c3ad79c3fa39b8554fb /spline/spline.cpp
parent2ab18fd01bc7c46043429511a3801846b998c749 (diff)
compat/util: retire
Adjust usages.
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)