summaryrefslogtreecommitdiff
path: root/src/common/math_util.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-20 14:18:03 -0400
committerGitHub <noreply@github.com>2018-04-20 14:18:03 -0400
commit326b044c19df0b1a342acf87f2ba7cd06e9a1e97 (patch)
treed815c707b437b3685e8ba188bbf0940d4205de2a /src/common/math_util.h
parent87f89ac82dae33f7ce4cd6a3b5e492510e8cf961 (diff)
parentfae2dd034462c5a6b086e46b3437ea6e2456d5eb (diff)
Merge pull request #367 from lioncash/clamp
math_util: Remove the Clamp() function
Diffstat (limited to 'src/common/math_util.h')
-rw-r--r--src/common/math_util.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 45a1ed367..c6a83c953 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -17,11 +17,6 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start
return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));
}
-template <typename T>
-inline T Clamp(const T val, const T& min, const T& max) {
- return std::max(min, std::min(max, val));
-}
-
template <class T>
struct Rectangle {
T left;