summaryrefslogtreecommitdiff
path: root/src/common/math_util.h
diff options
context:
space:
mode:
authorGravatar Lioncash2018-11-21 01:55:06 -0500
committerGravatar Lioncash2018-11-21 02:08:15 -0500
commit74fd0aa2e8b41d2ec130b06478fe011117fdbae8 (patch)
tree6cc3cff45c3767243d0dcbe0317c09bc7551d9e5 /src/common/math_util.h
parentMerge pull request #1751 from bunnei/color-mask-fix (diff)
downloadyuzu-74fd0aa2e8b41d2ec130b06478fe011117fdbae8.tar.gz
yuzu-74fd0aa2e8b41d2ec130b06478fe011117fdbae8.tar.xz
yuzu-74fd0aa2e8b41d2ec130b06478fe011117fdbae8.zip
common/math_util: Remove unused IntervalsIntersect() function
This hasn't been used since the project started, so we may as well get rid of it to keep it from bit rotting.
Diffstat (limited to 'src/common/math_util.h')
-rw-r--r--src/common/math_util.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 343cdd902..b553d47dd 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -4,7 +4,6 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <algorithm>
8#include <cstdlib> 7#include <cstdlib>
9#include <type_traits> 8#include <type_traits>
10 9
@@ -12,11 +11,6 @@ namespace MathUtil {
12 11
13static constexpr float PI = 3.14159265f; 12static constexpr float PI = 3.14159265f;
14 13
15inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1,
16 unsigned length1) {
17 return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));
18}
19
20template <class T> 14template <class T>
21struct Rectangle { 15struct Rectangle {
22 T left{}; 16 T left{};