From 74fd0aa2e8b41d2ec130b06478fe011117fdbae8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 01:55:06 -0500 Subject: 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. --- src/common/math_util.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/common/math_util.h') 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 @@ #pragma once -#include #include #include @@ -12,11 +11,6 @@ namespace MathUtil { static constexpr float PI = 3.14159265f; -inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, - unsigned length1) { - return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1)); -} - template struct Rectangle { T left{}; -- cgit v1.2.3