summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-10-18 17:41:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-10-19 14:46:26 +0200
commitd4eed6d0e23dc385c24ebdbc46628e24ac42982e (patch)
tree1589400213664ae417c179190f2afa5ef4b8b938
parent792af93e1b84b35ad1aeeefe528e344dca85a45a (diff)
filter/accela: what the hell is this nonsense
-rw-r--r--filter-accela/ftnoir_filter_accela.h14
1 files changed, 1 insertions, 13 deletions
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
@@ -29,21 +29,9 @@ private:
Timer t;
template <typename T>
- static inline int signum(T x, std::false_type)
- {
- return T(0) < x;
- }
-
- template <typename T>
- static inline int signum(T x, std::true_type)
- {
- return (T(0) < x) - (x < T(0));
- }
-
- template <typename T>
static inline int signum(T x)
{
- return signum(x, std::is_signed<T>());
+ return (T(0) < x) - (x < T(0));
}
};