diff options
author | Jack Lloyd <[email protected]> | 2020-11-11 19:53:41 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-11 19:53:41 -0500 |
commit | fac6dbb6292944a258dee1b726df16c78c2d0c90 (patch) | |
tree | 46272ecdcef916ca2566f6ac8fc9aed6ead658b2 /src | |
parent | 706b3a3daf751a61e5f1e2f040eaf33cbffd852b (diff) |
Remove clamp, which was unused
(And replaced by the std:: version in C++17 if we did need it)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/rounding.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/utils/rounding.h b/src/lib/utils/rounding.h index ae0aedf07..e8083bb3c 100644 --- a/src/lib/utils/rounding.h +++ b/src/lib/utils/rounding.h @@ -39,18 +39,6 @@ inline constexpr T round_down(T n, T align_to) return (align_to == 0) ? n : (n - (n % align_to)); } -/** -* Clamp -*/ -inline size_t clamp(size_t n, size_t lower_bound, size_t upper_bound) - { - if(n < lower_bound) - return lower_bound; - if(n > upper_bound) - return upper_bound; - return n; - } - } #endif |