diff options
author | tron <tron@openttd.org> | 2005-02-05 22:52:08 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-05 22:52:08 +0000 |
commit | c753037d874840d328aa7bcdd9d71477f2c57af9 (patch) | |
tree | a97d5a0ef77a15acc06945466b1c649eba7f715a /macros.h | |
parent | 12183084b75365777aecd57fe43a355f39d1200c (diff) | |
download | openttd-c753037d874840d328aa7bcdd9d71477f2c57af9.tar.xz |
(svn r1809) Remove unused function str_is_below()
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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)); } |