summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-01 15:01:54 +0000
committerfrosch <frosch@openttd.org>2009-06-01 15:01:54 +0000
commit0d782b0f96f01e7d9ac02120b8e5ca84fe9bc9f2 (patch)
tree9247ff8c6b63c62820520758d14a26b3a47f973e /src/core
parentda57fe63f348a1f4628b9f17df171f4c54f0d2e7 (diff)
downloadopenttd-0d782b0f96f01e7d9ac02120b8e5ca84fe9bc9f2.tar.xz
(svn r16498) -Codechange: Remove hardly used HASBITS.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/bitmath_func.hpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/bitmath_func.hpp b/src/core/bitmath_func.hpp
index f32aee67c..2da6d89ac 100644
--- a/src/core/bitmath_func.hpp
+++ b/src/core/bitmath_func.hpp
@@ -92,18 +92,6 @@ static FORCEINLINE bool HasBit(const T x, const uint8 y)
}
/**
- * Check several bits in a value.
- *
- * This macro checks if a value contains at least one bit of an other
- * value.
- *
- * @param x The first value
- * @param y The second value
- * @return True if at least one bit is set in both values, false else.
- */
-#define HASBITS(x, y) (((x) & (y)) != 0)
-
-/**
* Set a bit in a variable.
*
* This function sets a bit in a variable. The variable is changed