summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
Diffstat (limited to 'spline')
-rw-r--r--spline/spline-widget.cpp2
-rw-r--r--spline/spline.cpp7
-rw-r--r--spline/spline.hpp1
3 files changed, 2 insertions, 8 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp
index e4e43f71..c578d70d 100644
--- a/spline/spline-widget.cpp
+++ b/spline/spline-widget.cpp
@@ -5,8 +5,8 @@
* copyright notice and this permission notice appear in all copies.
*/
-#include "compat/util.hpp"
#include "spline-widget.hpp"
+#include "compat/math.hpp"
#include <QPainter>
#include <QPainterPath>
#include <QPaintEvent>
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)
diff --git a/spline/spline.hpp b/spline/spline.hpp
index 1bfe3b46..0d080cef 100644
--- a/spline/spline.hpp
+++ b/spline/spline.hpp
@@ -10,7 +10,6 @@
#include "compat/copyable-mutex.hpp"
#include "options/options.hpp"
-#include "compat/util.hpp"
using namespace options;
#include "axis-opts.hpp"