From d4eed6d0e23dc385c24ebdbc46628e24ac42982e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 18 Oct 2016 17:41:28 +0200 Subject: filter/accela: what the hell is this nonsense --- filter-accela/ftnoir_filter_accela.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'filter-accela') diff --git a/filter-accela/ftnoir_filter_accela.h b/filter-accela/ftnoir_filter_accela.h index 7fd62f88..d03dd155 100644 --- a/filter-accela/ftnoir_filter_accela.h +++ b/filter-accela/ftnoir_filter_accela.h @@ -28,22 +28,10 @@ private: double smoothed_input[6]; Timer t; - template - static inline int signum(T x, std::false_type) - { - return T(0) < x; - } - - template - static inline int signum(T x, std::true_type) - { - return (T(0) < x) - (x < T(0)); - } - template static inline int signum(T x) { - return signum(x, std::is_signed()); + return (T(0) < x) - (x < T(0)); } }; -- cgit v1.2.3