summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-05 22:52:08 +0000
committertron <tron@openttd.org>2005-02-05 22:52:08 +0000
commit31e098e64ed06580d4711b7f799234d6674288da (patch)
treea97d5a0ef77a15acc06945466b1c649eba7f715a
parent7aae12d55db82fc5faeed1cfcf5e4f460a277218 (diff)
downloadopenttd-31e098e64ed06580d4711b7f799234d6674288da.tar.xz
(svn r1809) Remove unused function str_is_below()
-rw-r--r--macros.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/macros.h b/macros.h
index 62840bee6..363eb84d0 100644
--- a/macros.h
+++ b/macros.h
@@ -27,17 +27,6 @@ static inline bool int32_add_overflow(int32 a, int32 b) { return (int32)(a^b)>=0
static inline bool int32_sub_overflow(int32 a, int32 b) { return (int32)(a^b)<0 && (int32)(a^(a-b))<0; }
-// Will crash if strings are equal
-static inline bool str_is_below(byte *a, byte *b) {
- while (*a <= *b) {
- if (*a < *b) return true;
- a++;
- b++;
- }
- return false;
-}
-
-
static inline int32 BIGMULSS(int32 a, int32 b, int shift) {
return (int32)(((int64)(a) * (int64)(b)) >> (shift));
}