summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/spline.hpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/spline-widget/spline.hpp b/spline-widget/spline.hpp
index 0ffc4de9..75a9e95e 100644
--- a/spline-widget/spline.hpp
+++ b/spline-widget/spline.hpp
@@ -10,6 +10,7 @@
#include "compat/qcopyable-mutex.hpp"
#include "options/options.hpp"
+#include "compat/util.hpp"
using namespace options;
#include "export.hpp"
@@ -48,16 +49,6 @@ class OPENTRACK_SPLINE_EXPORT spline final
static QPointF ensure_in_bounds(const QList<QPointF>& points, int i);
- template<typename t, typename u, typename w>
- static inline auto clamp(t val, u min, w max) -> decltype (val * min * max)
- {
- if (val > max)
- return max;
- if (val < min)
- return min;
- return val;
- }
-
mem<spline_detail::settings> s;
QMetaObject::Connection connection;